©ilj@flowsim.se JavaScript code samples 2 JavaScript alert - onClick, onMouseOver, onMouseOut >>> this example in Swedish >>> this example in French click here for a JavaScript alert ! code and explanations further down |
The alert function looks like this alert('text') 1 JAVASCRIPT ALERT - ONCLICK - an alert is shown when you click a link <A HREF ="URL" ONCLICK = "alert('Hi there!')">click here</A> Quotation marks like this ONCLICK="alert('Hi there!')" or like this ONCLICK='alert("Hi there!")' 2 JAVASCRIPT ALERT - ONMOUSEOVER - an alert is shown when the mouse pointer moves over a link <A HREF ="mailto:yournamn@youraddress" ONMOUSEOVER = "alert('Hi there!')">alert when pointer moves over link</A> The line that opens the JavaScript alert looks like this onMouseOver="alert('Hi there!')" 3 JAVASCRIPT ALERT - ONMOUSEOUT - an alert is displayed when the mouse pointer leaves the link <A HREF ="mailto:yournamn@youraddress" ONMOUSEOUT = "alert('Bye!')">message when pointer leaves the link</A> FAQ
OTHER JAVASCRiPT EXAMPLES How to use javascript to choose what image to show by selecting it in an option list How to use javascript to switch images How to use javascript to switch images onmouseover JavaScript getDay() and document.write JavaScript date JavaScript timer How to use javascript to switch images onmouseover JavaScript timer JavaScript onmouseover JavaScript lastModified JavaScript/ text in text area JavaScript/ text in text area how to open new windows in JavaScript JavaScript clock JavaScript confirm JavaScript alert JavaScript prompt JavaScript onmouseover JavaScript onmouseover2 JavaScript animation JavaScript animation 2 |
Page by ilj@flowsim.se Last modified: August 15, 1998. This page should be part of a frames system at: http://www.flowsim.se JAVASCRiPT |