[thelist] javascript conundrum...
Karen Bowen
karen at miinx.com.au
Mon Oct 1 08:08:44 CDT 2001
Try something like:
var loc, slash, dot, pg
loc = window.location.href
slash = loc.lastIndexOf("/")
dot = loc.lastIndexOf(".")
pg = loc.substring(slash+1,dot)
yourDiv.innerHTML = pg
I haven't tried this but it should work.. I think!
HTH
Karen
---------------
www.miinx.com.au
www.monkey.com.au
www.d-genre.com
-----Original Message-----
What I need to do is
- remove the page name from the uri.
- remove the .html suffix from the end of the file name.
- put that value into a variable.
- write the variable to a div.
More information about the thelist
mailing list