This is a fully working demo of the necessary button code to automatically check for an update of any button that you add this code into.
Most buttons do not need an update check, but where you have an operational button and plan to add further features at a later date - adding this update check will let button users know automatically that an update is available.
It is designed to run the first time that a user clicks on the button in any given session. This is a deliberate choice over the possibility of doing the check on browser start up - it's a shade less obtrusive and users are likely to start the browser more often than they use a button.
To test the button:-
After installing it - edit the version attribute to something less than it currently is. Ie change the date bit or the version number.
The first time you click on it the button will load the button's homepage in the background and check the version number posted on the homepage against the current version of the button. It will alert you if there has been an update. If not it just closes the window quietly.
The Help Tab contains instructions on how to add the script from the code tab and the initialise tab into any button you think might later need updates.

