Javascript to grab Javascript comments within <head>
<p>I have a page that begins as follows:</p>

<pre><code>&lt;html&gt;
        &lt;head&gt;
        &lt;!-- 12036,2011-11-29/11:02 --&gt;
        &lt;title&gt;Products &amp; Services&lt;/title&gt;
</code></pre>

<p>I would like to grab the 12036 number here and to display it within an absolutely positioned DIV at the bottom right of my screen. My intention here is to either to use it as a bookmarklet or as a Greasemonkey script. </p>

<p>The purpose of this is that the number represents a PAGE ID that we use reference internally. </p>

<p>I started off using: </p>

<pre><code>var x = document.getElementsByTagName('head').innerHTML;
</code></pre>

<p>But I could not progress any further. </p>

<p>Can anyone assist here?</p>
