JavaScript question related to the use of ' and "
<pre><code>my_window.document.write(' 
  &lt;script type="text/javascript"&gt; 
    function redirect(linkid) { 
      opener.location.href=linkid;
      window.close();
    }
  &lt;/script&gt;
  &lt;h1&gt;Hello&lt;/h1&gt;
  &lt;p&gt;Thank you.If you accidentally closed our website click 
  &lt;a href="javascript:redirect('http://google.com')"&gt;here&lt;/font&gt;&lt;/a&gt; 
  to go back to our  website&lt;/p&gt;
'); 
</code></pre>

<p>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.</p>

<p>Please help me with the necessary changes wherever required.</p>
