Root: WRM Database > Information Technology > Programming Languages > JavaScript > Functions > getQuerystring > Using The getQuerystring Function

Using The getQuerystring Function

The purpose of using the getQuerystring function is to retrieve information out of the URL box. Say you have the URL To retrieve the "author" querystring's value, you would use the following code:

var author_value = getQuerystring('author');

After running the JavaScript code, author_value will equal joesmith.


Odom, Wendell (2008) CCNA ICND2 Official Exam Certification Guide, Second Edition. Indianapolis: Cisco Press.