as you see that there is a URL like http://localhost/web/index.aspx?tab=1
how can I get the tab's value by using javascript ?
any function in javascript ?
or I must write a function by myself ?

Signature
FireCrow Studio
Kylin Garden
QQ:462042991
MSN:GaoTianpu@hotmail.com
ICQ:156134382
Steve Fulton - 06 Jun 2005 13:43 GMT
> as you see that there is a URL like http://localhost/web/index.aspx?tab=1
> how can I get the tab's value by using javascript ?
> any function in javascript ?
> or I must write a function by myself ?
search Property
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/search.asp
You'll have to do your own parsing to extract information from the string.

Signature
Steve
In questions of science, the authority of a thousand is not worth the
humble reasoning of a single individual. -Galileo Galilei
kishor - 08 Jun 2005 07:44 GMT
Hi,
Use this following Function to get value of tab
var tabvalue = getQueryVariable("tab");
--------------------------------------------------------------------------
function getQueryVariable(variable)
{
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++)
{
var pair = vars[i].split("=");
if (pair[0] == variable)
{
return pair[1];
}
}
}
> as you see that there is a URL like http://localhost/web/index.aspx?tab=1
> how can I get the tab's value by using javascript ?
> any function in javascript ?
> or I must write a function by myself ?