Name: Anonymous 2011-01-27 14:58
This works fine:
javascript:localStorage.setItem('chanchan',document.getElementsByTagName('textarea')[0].value);
This one doesn't work:
javascript:localStorage.setItem('chanchan',document.getElementsByName('com')[0].value);
This one loads the value into the body instead of the textarea, and deletes everything else:
javascript:document.getElementsByTagName('textarea')[0].value=localStorage.getItem('chanchan');
Explain this bullshit.
javascript:localStorage.setItem('chanchan',document.getElementsByTagName('textarea')[0].value);
This one doesn't work:
javascript:localStorage.setItem('chanchan',document.getElementsByName('com')[0].value);
This one loads the value into the body instead of the textarea, and deletes everything else:
javascript:document.getElementsByTagName('textarea')[0].value=localStorage.getItem('chanchan');
Explain this bullshit.