w3schools turned on turned off alert message code example Example: how to make an alert on a page go to inspect element, go to console. type in alert("text")