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 to the CF scene
    Join Date
    Aug 2007
    Location
    North Carolina, USA
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    specifying a variable in the URL?

    I know that using php and asp you can specify a variable in a url (ie. page.asp?variable=value). Being new to web design I was wondering if asp and php were the only way you can do that or if it's possible to specify a variable in the URL for an HTML page and then reference it somehow in a javascript?

  • #2
    New to the CF scene
    Join Date
    Aug 2007
    Location
    North Carolina, USA
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts
    nevermind, i figured out a solution to my problem using "location.hash"

  • #3
    Regular Coder
    Join Date
    Feb 2005
    Posts
    679
    Thanks
    0
    Thanked 16 Times in 15 Posts
    You can get the query sting in Javascript using the 'search' property of the location object
    DevGuru :: search


  •  

    Posting Permissions

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