Browser back button and dynamic elements

前端 未结 2 986
孤独总比滥情好
孤独总比滥情好 2020-12-30 12:42

I have a page that uses jQuery to create a number of DOM elements dynamically based on what user picks from a

2条回答
  •  鱼传尺愫
    2020-12-30 13:43

    legenden - there are a number of possible solutions to this, I would check out these history plugins for one:

    • History Remote
    • jQuery History plugin
    • Deep Linking plugin

    They are a little fidgety, but you should be able to hack up something positive. I will also add, that this can probably be done by storing the dynamically elements in a cookie(s) and somehow repopulating. Check out the jQuery Cookie plugin. Hope that helped you get started.

提交回复
热议问题