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 3 of 3

Thread: var

  1. #1
    New Coder
    Join Date
    Mar 2004
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    var

    In my code I have this:
    Code:
    document.forms[0].submit();
    setTimeout("close(self)",1000);
    And it works fine
    I need to put var instead of 1000, like this:
    Code:
    function fsubmit() {
    var Tval = 1000;
    document.forms[0].submit();
    setTimeout("close(self)",TVal);
    }
    And it stops work... What should be done to make it work???
    Thank you....

  • #2
    New Coder
    Join Date
    Mar 2004
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts
    O, I have found what was wrong... JavaScript is case sensitive ...

  • #3
    Rex
    Rex is offline
    New Coder
    Join Date
    May 2004
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello Petergr -

    (Edited) I was too late with my reply :)

    - Rex
    Sincerely,
    Rex


  •  

    Posting Permissions

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