dcsimg
www.webdeveloper.com
Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19

Thread: window.location in link ???

  1. #16
    Join Date
    Feb 2003
    Location
    Michigan, USA
    Posts
    5,774
    Quote Originally Posted by jasonahoule
    The query string is not considered part of the URL. You can retrieve these vales through the window.location.search property.
    Correct. The query string is not a part of window.location.href and is located in window.location.search, but the href and query string are both mashed together in window.location. Why use two different strings and concatenate them when you can use one string?

  2. #17
    Join Date
    Jan 2006
    Posts
    301
    Hey toicontien this works great however I don't want the prompt for an email address. Is it possible to take that part out of the code?

  3. #18
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,434
    Try:
    var email = 'email@address.com';
    with your 'hard coded' address.
    or possibly passed function variable (advanced).

  4. #19
    Join Date
    Jan 2006
    Posts
    301
    Perfect! Why didn't I think of that! :-)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles