Jimbo
01-26-2003, 05:33 PM
I am trying to to make a script that retrieves a part of the URL. The link used to get to my site has "?name=%n" after the actual site address. The "%n" is used for AOL Instant Messenger to display a person's screen name. I want to retrieve the "%n" after the person has clicked the link. This is what I have in the <head>:
function name()
{
var place = window.document.location
var name_set = document.getElementById("iframe_titlebar");
var the_length = place.length
var the_address = place.substring(0,54);
var the_name = place.substring(55,place.length);
name_set.innerHTML = "Hey" + the_name
}
And then I have the body onload for name(). This is not working. Is there another way to do this? I have limited use on the server I am using so this is the only way I can think of to do.
function name()
{
var place = window.document.location
var name_set = document.getElementById("iframe_titlebar");
var the_length = place.length
var the_address = place.substring(0,54);
var the_name = place.substring(55,place.length);
name_set.innerHTML = "Hey" + the_name
}
And then I have the body onload for name(). This is not working. Is there another way to do this? I have limited use on the server I am using so this is the only way I can think of to do.