Michiel
08-23-2003, 01:44 PM
Hi,
I'm using the followig javascript to get the name + extension of the current page, without the complete path:
var the_url = document.location;
var url_array = the_url.split("/");
var last =url_array.lenght - 1;
alert(last);
value = second_split[last];
alert(value);
Somehow this code doesn't work. I get the error that the object doesn't support this method. Where do I go wrong?
Thanx in advance, Michiel
I'm using the followig javascript to get the name + extension of the current page, without the complete path:
var the_url = document.location;
var url_array = the_url.split("/");
var last =url_array.lenght - 1;
alert(last);
value = second_split[last];
alert(value);
Somehow this code doesn't work. I get the error that the object doesn't support this method. Where do I go wrong?
Thanx in advance, Michiel