Search
Submit & Win
Submit and win
Cash Prizes !
Winners

Win Prizes

Social Presence
Twitter Twitter LinkedIn YouTube Google

Like us on Facebook
Advertisements
Top Codes Author
Fri, 19-Dec-2014 Authors
All Time Authors
Satyapriyanayak
12160
Vishal@Neeraj
10880
Jayakumars
8120

Latest members | More ...


(Statistics delayed by 5 minutes)
 Codes

Capture querystring value in Javascript

Madhu.b.rokkam
Posted by Madhu.b.rokkam under JavaScript on 2/15/2011 2:21:03 PM | Points: 40 | Views : 2412 | Status : [Member] [MVP]

if the url is
http://localhost:1033/Default.htm?ValueFromAspx=test

var str = document.location.search.substring(1);
alert(str);

this will result as

ValueFromAspx=test


Thanks and Regards
Madhu
Share this to:

Bookmark It

Comments or Responses


Login to post response