JavaScript bookmarklet in IE7
<p>I am trying to get my JavaScript working in IE7 which works smoothly in all other browsers.</p>

<pre><code>document.write('&lt;li&gt;&lt;a class="bookmarklet" href="javascript:x=document;a=encodeURIComponent(x.location.href);t=encodeURIComponent(x.title);d=encodeURIComponent('+selection+');open(\'&lt;?php echo createURL('bookmarks', $GLOBALS['user']); ?&gt;?action=add&amp;amp;popup=1&amp;amp;address=\'+a+\'&amp;amp;title=\'+t+\'&amp;amp;description=\'+d,\'&lt;?php echo jsEscTitle($GLOBALS['sitename']); ?&gt;\',\'modal=1,status=0,scrollbars=1,toolbar=0,resizable=1,width=790,height=465,left=\'+(screen.width-790)/2+\',top=\'+(screen.height-425)/2);void 0;"&gt;&lt;?php echo jsEscTitle(sprintf(T_('Share with %s '), $GLOBALS['sitename'])); ?&gt;&lt;\/a&gt;&lt;\/li&gt;');
</code></pre>

<p>Appreciate your help.</p>

<p>Thank you.</p>
