PDA

Click to See Complete Forum and Search --> : onclick+netscape+submit


sharon
Nov 21st, 2000, 05:39 AM
heloo again!

my problem is :
i want to make an image that i can submit a form with her and do more things with onclick for example

<a href="#" onclick="document.form.value=<%somthing%>;submit();><img src="blabal"></a>

this dosent work in netscape!!
the value of <%somthing%> doesnt deleverd on submit()
how can i work it in netscape????????????

i hope i got it right!

Mark Sreeves
Nov 21st, 2000, 06:02 AM
<html>
<head>
<script language=javascript>
function doIt(){


//alert("put your code here")


document.frm1.submit();


}

</script>
</head>

<body><form name=frm1><A href='javascript:doIt();'><IMG border=0
src="scroller.gif"> </A>
</form>

</body>
</html>

Fwank79
Nov 28th, 2000, 09:54 AM
If you really want to do it in the <A> tag:

<A href="#" onclick="document.form.submit();return false;">

The return false makes it work