how do l create an alert with javascript code example Example: how to make an alert on a page go to inspect element, go to console. type in alert("text")