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
    Apr 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to pass two or more variable through java script function

    i am writing a Java script function in asp page to pass two variables to another asp page like

    function fnANO()
    {
    var strano

    strano = flatform.ano.value;
    strpno = flatform.pno.value;
    location.href = "anocode.asp"?ano="+strano&"+pno="+strpno




    }
    But it doesn't seems to work

    Their is problem in location.href.......

    Pls tell me prpper syntax

  • #2
    Regular Coder
    Join Date
    Apr 2005
    Location
    Lisbon, CT
    Posts
    339
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    location.href = "anocode.asp?ano="+strano+"&pno="+strpno;
    BaldEagle


  •  

    Posting Permissions

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