Potential problems setting [removed].hash

后端 未结 5 591
故里飘歌
故里飘歌 2020-12-15 05:02

I have some javascript code which, at one point, sets window.location.hash to a specific string. This works fine in Firefox 3, but I want to know if I will run

5条回答
  •  独厮守ぢ
    2020-12-15 05:55

    Old thread i know, but window.location.hash is subject to a size limit as well. If you're passing large amounts of data, and want to save state in the hash, you could run into some issues.

    IE will give you the error: SCRIPT5 - Access denied. if you try to assign a hash that is over the limit which is super useful.

    Just food for thought.

提交回复
热议问题