-
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!
-
Code:
<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>
-
really simple
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