Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- JavaScript location = bookmark/id on same page?


Dabrowski - 3:02 am on Apr 25, 2007 (gmt 0)


Actually that Regex won't work.

You need to use /(.*?)(#¦$)/ instead. The one you've got will return null if there is no #thing on the end. That one will do either.

Note improper representation of ¦ symbol! It should be a logical OR, SHIFT +BACKSLASH on UK keyboard. No idea on US.


Thread source:: http://www.webmasterworld.com/javascript/3320399.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com