Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

page name from url

Status
Not open for further replies.

spewn

Programmer
May 7, 2001
1,034
okay, that works. thank you

one more ? for you:

how can i shorten the url once i load it onto my server, to save writing out the full '
so all i would have to write was maybe 'whateverpage.html', or '../site/whateverpage.html'...

thanks again... - crispy.
 
try something like:

PATH = '
and then test against:

PATH+"mypage.htm"

or, more sophisticated like:

<script>
mypage = &quot;mypage.htm&quot;
var loc = new String(self.location);
if(loc.substring(loc.lastIndexOf(&quot;/&quot;)+1)==mypage){document.write(&quot;it worked!&quot;)}
</script>

try not to title messages specifically to me or anyone else. it discourages community support/learning... jared@eae.net -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top