Jack Nilan         Javascript Tutorial        EMail : jacknilan@yahoo.com



Lesson 3 - Click on Div or Table and Redirect

This lesson is going to show you code that will let you click on a div or a table and advance to another page (making your document like a Powerpoint)

Click anywhere
in this div and you
can go to another page

This also works on tables




<div onclick="window.location ='http://jacknilan.com'" "style ="background-color : lightblue; width : 500px; height : 60px">
<font color = white>
Click anywhere<br> in this div and you <br>can go to another page <br>
This also works on tables<br><br>
</div>