window.location.search is a very useful script that able to return all querystring for further usage like pass to another page/AJAX.
To test on the usage, save below page as locationsearch.htm. To see the result, add querystring to the page called: locationsearch.htm?p=testing&l=javascript
<html>
<head>
<script language="JavaScript">
function onload()
{
alert(window.location.search);
}
</script>
</head>
<body onLoad="onload()">
</body>
</html>
No comments:
Post a Comment