Here the function displayAlert assigns a value to the variable OSName by way of a prompt box:
Here the function displayAlert is called by clicking on an image in the main body of the page:
<a href="http://www.yourDomain.com/" onclick="displayAlert()"><img src="http://www.yourDomain.com/yourImage.jpg"/></a>
</body>
</html>Or you could create a button, 'Switch Activate' in this case, to do the job:
<button type="button" name="Switch Activate" onclick="displayAlert()"></button>


