.Darkman
06-05-2007, 02:25 PM
Hello everybody,
I need some small help with GET Variables in JS.
I'll explain this with an example.
In an HTML file, i have the following code :
<script type="javascript" src="http://anothersite.com/file.js?name=Darkman"></script>
The JS file is as follows :
document.write("The name is '+name+'");
Now, how do i detect and store this "Darkman" in the "name" variable ?
Thanks,
I need some small help with GET Variables in JS.
I'll explain this with an example.
In an HTML file, i have the following code :
<script type="javascript" src="http://anothersite.com/file.js?name=Darkman"></script>
The JS file is as follows :
document.write("The name is '+name+'");
Now, how do i detect and store this "Darkman" in the "name" variable ?
Thanks,