View Full Version : Any Ideas?

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

<iframe src="page2.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.

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";.

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