Why is this code not working???
I wonder if anyone could tell me why this code isn't working:
the document.write() and the document.submit() seem to work if I use only one at a time.
I'm some kind of lost here...
Thanks in advance!
the document.write() works in the current code index, this means that it clears the onclick reference to the link, try adding it to a function instead, or failing that use spnas/divs to write it out.
<a href onClick="spn.innerHTML = '<input type=hidden name=orderBy value=id>'; document.echoDb.submit(); alert('It works at least');">id</a>
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)