PDA

View Full Version : Any Ideas?



IanMarlowe
07-23-2005, 11:12 AM
Page_with_iframe has this script:


<html>
<body>
<iframe src="page2.html">
</iframe>
</body>
</html>


That has worked up till now. I would like to have it so the page it shows can be either: page2.html, page3.html, or page4.html. this has been bugging me for a while, and I'm not sure what to do.

Twey
07-23-2005, 05:58 PM
No te entiendo.
Give it an id (say, theFrame) and you can change it with document.getElementById("theFrame").location.href = "http://www.newpage.com";.

IanMarlowe
07-24-2005, 03:59 AM
hmmm....maybe I could name one target page whose enture content is based on a random number...