HandersonVA said:
I used <input type="button" value="Back to Correct"
onclick="window.history.back();"> to go back to the previous page is
working, but if i use the as below instead, it does not work. what did I do
wrong?
<a href="javascript:document.testform.newid.value='Ne w';" class="btn1-text"
onclick="window.history.back();">Back to Correct<a>
The "javascript" pseudo-protocol evaluates the javascript expression
and, if it is not empty, uses the result as the new contents of the
page. Your expression evaluates to the string "New", so that becomes
the new contents of the page.
If you don't want to follow that link, you need to have the onclick
handler return false.
onclick="window.history.back();return false"