An Abbreviated Introduction to JavaScript


The Query String

This is a short example of getting the query string. Enter some values and click on the Testing button.

Name:
Id:

The information the page received is


The information the page received is <strong>
<script language="javascript1.1">
if (location.search == "") {
  document.write("<em>nonexistant</em>");
}
else {
  document.write(location.search);
}
</script>
</strong>

Source text written by Samuel A. Rebelsky.

This page may be found at http://www.math.grin.edu/~rebelsky/Tutorials/JavaScript/Spring1999/Examples/query.html

Source text last modified Wed Apr 14 12:29:38 1999.

This page generated on Wed Apr 14 12:35:46 1999 by SiteWeaver. Validate this page's HTML.