Page-Details : _GET Web Address Reader

Greg Burghardt Mar 2, 2007

General

This script will allow you to grab variable-value pairs from the URL of a page, much like PHP grabs data from the URL. It places foo=bar data in a JavaScript object called _GET, and can be referenced similar to $_GET in PHP.


Try it out:

  • Enter any variable-value pair in the URL (adding it to the end of the URL),
    e.g., "?my_name=Bob&last_name=Smith" (w/o quotes)

  • or click one of the sample links below:

_GET items found for this URL:



Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: getReader.js


Head

Paste this code into the HEAD section of your HTML document.


Leave a Response

(0 comments)