Home >Web Front-end >HTML Tutorial >I'm wondering how to maintain the status when clicking a link on a multi-level menu when jumping to a new page? ? ? _html/css_WEB-ITnose
Now a tree menu has been written and placed in the left table. The initial state is collapsed together. Click on the tree Expand the menu, then click on the subdirectory below to open the corresponding content in the table on the right. However, since the opened content actually opens another linked web page, the content in the table on the left is also replaced, so the content on the left is The tree menu in the table has returned to the contracted state. When there are many subdirectories, if you want to view other subdirectories, you have to repeatedly expand the tree menu to find subdirectories. It seems very troublesome. Please call the experts. Is there a way? Let the menu on the left remain expanded without clicking to shrink it. After clicking the relevant link of the subdirectory, the menu on the left remains expanded?
The content on the right can be made into a page. Or ajax partial refresh
can record the cookie, store the cookie just clicked, and when the jump is refreshed, take out the cookie and automatically expand it according to the value.
It is more convenient to use iframe
Thank you everyone for your replies. I solved the problem using dTree!
dTree?
dTree?
Yes, you can find out in Baidu!