Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

snippets

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.

Name: Anonymous 2011-01-28 9:57

1) setItem/getItem is fugly. JavaScript is not ENTERPRISE.
2) You're obviously doing it wrong.
3) This is /prog/. You really expect to get an actual answer about programming here?!
4) ???
5) see >>9,10,13,15

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List