javacript question related to use of ' and "

Posted by vatismarty on Stack Overflow See other posts from Stack Overflow or by vatismarty
Published on 2010-06-02T07:28:34Z Indexed on 2010/06/02 7:33 UTC
Read the original article Hit count: 189

Filed under:

my_window.document.write('

function redirect(linkid) { opener.location.href=linkid; window.close(); }

Hello

Thank you.If you accidentally closed our website click here to go back to our website

');

This is my piece of code to close a already opened pop up window by redirecting it to google.com. I think there is some problem with matching the apostrophes ' and "... how to code with (' (" (' ') ") ')... is this correct... please help me with this.

© Stack Overflow or respective owner

Related posts about JavaScript