question

venkateshpadmanabhan-5594 avatar image
0 Votes"
venkateshpadmanabhan-5594 asked YijingSun-MSFT commented

Javascript: replace /escape character

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

dotnet-aspnet-webpages
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @venkateshpadmanabhan-5594 ,
What's your meanings? Could you share the result you want to us?
Best regards,
Yijing Sun

0 Votes 0 ·

0 Answers