Forum Moderators: open
Let me see if I can try and explain what I'm trying to do.
You make a page and save it as "mypage.html" but in the source code of that same page you make the title of the page "all about my page"
I'm trying to make a java script that shows the "mypage" without the .html and not what is in the source code for title.
Can anyone please help me with this?
When it comes to java script I'm very much not in the know so any and all help is greatly appreciated
window.location.hrefproperty, that removes - everything before the last slash
- everything after the last dot
alert( 'This page is'+ window.location.href.replace( /^.*\/[b][red]¦[/red][/b]\.[^\.]*$/g, '' ); ! But be aware that WebmasterWorld corrupts the pipe symbol ( ¦ ) into what you see. Replace the broken pipe with an unbroken one - or the code won't work!