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
  1. #1
    New Coder
    Join Date
    Aug 2005
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    pass var in href

    hi how can I pass the value of a variable to a href url?
    [code]
    var tag = 'hello';
    .location.href = 'wDoxContent.aspx?type=folder&name=tag ---?????
    [/code

    thanks

  • #2
    teh Moderatorinator
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,472
    Thanks
    4
    Thanked 40 Times in 40 Posts
    .location.href = 'wDoxContent.aspx?type=folder&name=' + tag
    ?

  • #3
    New Coder
    Join Date
    Aug 2005
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks
    Last edited by jewel; 08-18-2005 at 07:02 AM.


  •  

    Posting Permissions

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