Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- How do I code hyperlinks in Javascript?


keyplyr - 11:16 am on Jul 8, 2002 (gmt 0)



> I'm curious - why do you need to do this? *aren't they forward slashes?

I think that's what he meant. A browser reading JavaScript sometimes will see the / as a termination, so the \ is added to make \/ which fixes it.


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