Javascript layers and Chrome browser
<p>I working on an application which is using layers to show header and it remains fixed even when the user scrolls to the bottom of the page. It works fine in IE. Below is a piece of code for making to to work in Chrome. </p>

<pre><code>        strLayer += "Data for layer";

        baseLayer = new Layer(window.innerWidth);

        baseLayer.document.open();
        baseLayer.document.write(strLayer);
        baseLayer.document.close();
        baseLayer.visibility = "show";
</code></pre>

<p>When I use the above code, I get 'layer is not defined' error. Can anyone let me know if the code makes sense? for Chrome</p>
