#1
  1. No Profile Picture
    crazyio
    Guest
    Devshed Newbie (0 - 499 posts)
    I try to get a parameter from URL and use it
    in javascript
    please help
  2. #2
  3. No Profile Picture
    simon
    Guest
    Devshed Newbie (0 - 499 posts)
    Do you mean a parameter that you've sent along from another page, or do you mean getting the URL that linked to your page?

    In the first case you just send it along with the URL from the previos page. Somerthing like:

    <a href="your_page.html?parameter=value">go!</a>

    In the other case:

    <script language="JavaScript">
    if (document.referrer){
    document.write("You came from " + document.referrer);
    }
    </script>

    Hope I helped you out!

Similar Threads

  1. Get request parameter from URL
    By huckleberry in forum HTML Programming
    Replies: 5
    Last Post: February 16th, 2004, 04:53 AM
  2. Access parameter from URL in the function
    By mikerh9 in forum PHP Development
    Replies: 3
    Last Post: January 9th, 2004, 09:46 PM
  3. compile vhosts
    By the-griff in forum Linux Help
    Replies: 0
    Last Post: November 5th, 2003, 08:07 PM
  4. url parameter
    By davaze in forum PHP Development
    Replies: 5
    Last Post: October 28th, 2003, 11:09 AM
  5. Replies: 3
    Last Post: January 11th, 2002, 04:26 PM

IMN logo majestic logo threadwatch logo seochat tools logo