I have a page that begins as follows:
<html>
<head>
<!-- 12036,2011-11-29/11:02 -->
<title>Products & Services</title>
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.
The purpose of this is that the number represents a PAGE ID that we use reference internally.
I started off using:
var x = document.getElementsByTagName('head').innerHTML;
But I could not progress any further.
Can anyone assist here?