Click to See Complete Forum and Search --> : Please Help: How To Simulate "onClick" in Netscape 4.5


kingpoop
09-16-2003, 11:26 AM
Hello,
I am trying to perform an onClick in Netscapte 4.5, however, I have heard that NS4.5 does not support the onClick event.

I want to click on a hyperlink and submit a form using POST instead of GET.

Any help is greatly appreciated.

<form name="frmTest">
<a onClick="fnLineItem()">Some Link</a>
</form>

<script language="javascript">
<!--
function fnLineItem() {
document.forms[frmTest].method='post';
document.forms[frmTest].action='PO_StoreInfo.asp';
document.forms[frmTest].submit();
}
//-->
</script>

pyro
09-16-2003, 11:31 AM
I don't have NN 4.5, but onclick works fine in NN 4.7...

Also, your real problem is going to be keeping your page working for those without javascript enabled. Why not just use a submit button?