The JS function specified below is run on every page.
#### [WhatPage.js](../WAMI/WAMI/WhatPage.js)
#### [WhatPage.js](/WAMI/WAMI/WhatPage.js)
Will determine what page, and therefore the step in the inventory process currently at. This is accomplished by obtaining the URL from the page and search for certain strings in the URL to determine what page the script executes on.
From the URL property of the document object, retrieve the address of the page.