If you're using an IFRAME on a page that loads a seperate src page, any links you click on in the IFRAME will load in the IFRAME. How can you get it so that any links you click on will open in the current browser window?
Here's the page I'm working with:
Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script language="JavaScript" type="text/javascript"> <!-- function loadNewFrame(newAddress){ document.getElementById('myframe').src = newAddress; } //--> </script> </head> <body> <p><a href="#" onclick="loadNewFrame('http://google.com');">page1</a></p> <p><a href="#" onclick="loadNewFrame('http://sitepoint.com');">page2</a></p> <p> <iframe name="myframe" id="myframe" width="90%" height="300px" frameborder="0px" src="http://yahoo.com/"></iframe> </p> <p> </p> </body> </html>





.

Bookmarks