Hi x x
How can I get the page's name from Jscript and do something with the name?
I wanna do something like this:
function()
{
var sName;
var popup;
sName = GET_THE_PAGE_NAME ;
sName= GET_FILENAME_WITHOUT_EXTENTION( sName ) + ".htm" ;
popup = window.open(GET_WEBSITE_ROOT() + "/docs/" + sName );
}
I don't know how to do all the GET_XXXX Functions, can you help me with
that???
Thanks
Sergio
Bruce Barker - 31 Oct 2005 18:07 GMT
document.location is the current document. use a regular expression to get
the root.
-- bruce (sqlwork.com)
> Hi x x
>
[quoted text clipped - 15 lines]
> Thanks
> Sergio