Results 1 to 3 of 3

Thread: onclick+netscape+submit

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2000
    Posts
    117
    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!
    thank you
    sharon

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    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>
    Mark
    -------------------

  3. #3
    New Member
    Join Date
    Nov 2000
    Posts
    2

    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
  •  



Click Here to Expand Forum to Full Width