Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    why Form.Submit() mehtod doesnot work

    Hello
    I have Javascript code below , in which i call html form Submit() mehtod
    ,when i run my page in IE it works fine .but when i open this page in
    FIREFOX it doesnot works why is it so.
    What is the alternative solution for it for FIREFOX .

    <script language='Javascript'>
    document.form1.action='www.somelink.com'
    Document.form1.submit();
    </script>

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    this should work:

    <script type="text/javascript">
    document.form1.action='www.somelink.com'
    document.form1.submit();
    </script>
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •