Page Parameters from JavaScript
July 6, 2010
Here's how to get hold of page parameters from JavaScript code. This involves grabbing the whole URL and then looking through it for the parameters.
Code
This example code can be called with a single parameter called message, i.e. http://localhost:8000/test.html?message=drumcoder
. The value of the message parameter is then included …