...

View Full Version : link to same page on different path



nabla
01-14-2004, 09:43 AM
hi,
i want to link to a page with the same name on another path. something like this:

href="javascript:window.location='../newpath/'+currentdocumentname;"


thanks

Kor
01-14-2004, 10:44 AM
This is the method which return your "blabla.html" page name as a string to be used further :

var currentdocumentname = String(window.location).split('/')[String(window.location).split('/').length-1];



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum