issue with apostrophes in a function with div.innerHTML : <p>This code make an error.
Probably the problem is with location.href apostrophes.</p>

<pre><code>div.innerHTML ='&lt;div id="link"&gt;\
&lt;input type="button" onclick="location.href='http://www.google.com';"/&gt;\
&lt;/div&gt;';
</code></pre>
