uses the object tag instead of iframe.
There is no REAL replacement - DIVs may be a way to section off a bit of a page
but still NOT a replacement
In essence:
Adding Functionality
Go back to your "index.html" file, and change your object element to look like this:
We have just added some functionality to the object element. Save it and open it up in your browser. "framed.html" will show up in a small part of the page!
Finishing
However, we aren't finished just yet! We still have to add the backup in case a URL that doesn't work is placed into the object element. We will call this code the "Fallback code" that the browser goes to when a link doesn't work.
Add this to your object element:
| <object data="framed.html" type="text/html"><p>This is the fallback code!</p></object> |
No comments:
Post a Comment