Session variables without cookies
Session variables without cookies - 可以一直儲存一個變數直到該tab/window關閉,神奇不過不知道可以應用在哪。
Brilliant but terrifying hack—you can store up to 2 MB of data in window.name and it persists between multiple pages, even across domains. Doesn’t work with new tabs though, and storing JSON in it and eval()ing it is a bad idea—a malicious site could populate it before sending the user to you.
DOM:window.name - MDC
Gets/sets the name of the window.
Session variables without cookies
另外該作者的 undo library 也值得一看: Undo & redo in forms
沒有留言:
張貼留言