Ex No: 5 | FRAMES AND EVENTS |
---|---|
Aim: | To write a JavaScript program to display the specification of an object in an iframe on mouseover event. |
Algorithm | |
Step1: Create a folder “Ex5” to place all the HTML files. | |
Step2: Create three HTML file “index.html” and “desc.html”. | |
Step3: Add JavaScript code in index.html” to implement mouse over event. | |
Step4: Use "contentWindow" property and innerHTML property to show the description on “desc.html” page. | |
Source Code | |
index.html
desc.html
|
|
Result: | Thus JavaScript code is written to show description of an object on mouseover event in Frames. |