|
-
Nov 21st, 2000, 06:39 AM
#1
Thread Starter
Lively Member
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!
-
Nov 21st, 2000, 07:02 AM
#2
Frenzied Member
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>
-
Nov 28th, 2000, 10:54 AM
#3
New Member
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
Fwank
--------
Sometimes, ignorance is a bliss...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|