Menu
Hello guys,
I have a .js file resembling something like
[code]
var currentaddress=””;
function getURL(username)
{
if(username==”john”)
{ currentaddress = “www.google.com”;}
else
{ currentaddress = “www.yahoo.com”;}
}
My question is, assuming that 100 users are running this .js file, each user will have their own copy of currentaddress, is this correct? I won’t have just one copy which keeps changing depending on who was the username the last time it was called.
Thanks much.