How to Add a Close Button to an IFRAME

...
Keyboards don't have "Close" buttons, but you can add one to an IFRAME.

IFRAMES allow Web developers to create sites within websites. For example, by adding a simple IFRAME tag to your Web page, you can show site visitors a live webcam from another site or even a page from one of your own sites. IFRAMES do not have menus or buttons. To close an IFRAME object, you must add a "Close" button to your Web page and create a close event to hide the IFRAME.

Step

Open Notepad or your HTML editor and create a new document.

Step

Add this HTML code to the document:

Step

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Step

Add JavaScript After This Title

Step

Step