Sponsors

Web Designer? Design and market your own professional website with easy-to-use tools.

Compare, review and buy thousands of Laptops , software products at CheckCost.co.uk

Your Text Link Here! and your text description here!

Javascript onclick event tutorial

The onlclick event is used to detect single mouse clicks.

It is common to use the onclick event with links and buttons.

The javascript onclick event is used with the link below. Notice that you only need to click the text link once to trigger the event.

<a href="http://webdevelopmenttutorials.com/" onclick="alert('This is an example of the onclick event')";>Click Here</a>

Click Here

The javascript onclick event is used with the button below. Notice that you only need to click the button once to trigger the event.

<form>
<p>
<form>
<input type="button" onclick="parent.location='http://webdevelopmenttutorials.com/'" value="Click Here" />
</form>
</p>
</form>

Free Website Hosting

WebDevelopmentTutorials.com