Hi Anuj!!
Technically No you can't pass different querystring.<i.e. to Query string to a external javascript file >
On the other hand if you want to different values by making tempquery string then offcourse you can do this.
e.g ,
my page is "test.asp?firstname=x&lastname=y"
now i want to process two conditions
1>test.asp?firstname=x&lastname=y" //which is actual query string ,window.location.href value
2> and "test.asp?firstname=x&lastname=y&age=13&location=m ylocation"
or
"newfile.asp?firstname=x&lastname=y&age=13&locatio n=mylocation"
Solution-->put querystring in javascript variable call the external.
js file ,
and again put newquerystring in same javascript variable and calll the same function of external.
js file
If you have any other approach plz let me know.
<span id="spanid"> </span>
<script language="javascript">
originalQueryString=location.href
</script>
<script language="javascript" src="process.
js"></script>
<script language="javascript">
tempQueryString=location.href+" &newformfield=hello";
originalQueryString=tempQueryString
</script>
<script language="javascript" src="process.
js"></script>
**********process.
js***********
function callme()
{
str=document.getElementById("spanid").innerHTML+"< br>"+originalQueryString
document.getElementById("spanid").innerHTML=str
}
callme();
**********process.
js End***********
Cheers :)
vinod