all groups > dotnet jscript > october 2005 >
You're in the

dotnet jscript

group:

Page name


Page name SergioT
10/28/2005 7:34:39 PM
dotnet jscript:
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


Re: Page name Bruce Barker
10/31/2005 9:07:06 AM
document.location is the current document. use a regular expression to get
the root.

-- bruce (sqlwork.com)



[quoted text, click to view]

AddThis Social Bookmark Button