3,600 questions
Javascript: replace /escape character
venkatesh padmanabhan
181
Reputation points
Hi.
I am trying to do a javascript change location bookmarklet - if condition to replace with another URL
javascript:if(location.host=='abc')(location.href='http://cde'+location.pathname+'\?test\=enable');
The code works fine, but the last ' comes as %27 . How to correct this ?
Thanks
Developer technologies | ASP.NET | Other
Sign in to answer