Hi
Not sure what you are trying to achieve, but rather that trying to use querystring, simply declare a public variable in the external javascript file, and then assign values to this variable from any part of your page. Just try this example below:
//CODE FOR YOUR EXTERNAL FILE (can be SimpleJS.
js)
//Public variable
var strValue;
//Test function
function TestValue()
{
alert(strValue);
}
On a test page, you can try this code:
<script language=javascript src=SimpleJS.
js type=text/javascript></script>
<script>
function Test1()
{
strValue = "Testing First";
TestValue();
}
function Test2()
{
strValue = "Testing Second";
TestValue();
}
</script>
</head>
<body>
<form id="TestJS" method="post" runat="server">
<input type=button value=First onclick=Test1()><br>
<input type=button value=Second onclick=Test2()>
</form>
</body>
Do let me know if you need more clarification or I have diverted from your query.
Regards
Mike
Fortune favours the brave, so don't regret on missed oppurtunities.