Set window Size & auto refresh times of web page, without editing that page?


Question: I want to load a web page (not mine, no control over that page's code) in a browser window that is a 150x700. I also want that page to reload every 10 minutes.

I'm trying to do this in Javascript, here's what I've got so far, but the refresh aspect isn't working. Any suggestions?

[code]

<html>
<head>
<title>Opening Time. . .</title>
</head>
<SCRIPT language="JavaScript">


function poponload()
{
myWindow = window.open ("http://time.gov/timezone.cgi?central/d/-... "test",
"location=1,status=1,scrollbar...
myWindow.moveTo(0,0);
startTimer();
}

var elapsedTime = 0;
var timeOutInterval = 30;

function startTimer() {
if (elapsedTime < timeOutInterval) {
elapsedTime++;
self.setTimeout('startTimer()'... 100);
} else {
myWindow.location.reload();

}
}

</SCRIPT>
<body onload="javascript: poponload()">
<H1>Time will open in a seperate window</H1>
</body>
</html>

[/code]
self.setTimeout('startTimer()'... will call the startTimer() every 100 milisec. so if you wan poponload() to be reloaded then you have to call self.setTimeout('reloaded()',1...

---------------
http://www.infosrama.com/blog/
More Questions & Answers...
  • Get113to138mpg.com It can be done! and it "HAS BEEN DONE"!?
  • I'd like to run Easy PHP Calendar but it requires a decoder. I need ZEND and IONCUBE. Possible to do?
  • I am getting 403 error when trying to load a web page desing with iweb on my geocities account. Any ideas?
  • How much is the industry market rate for a mid-level java programmer?
  • Customizing a Flash Template?
  • Macrovision flash 8. loading music stream works on bench, not on web. Why?
  • Intial groundwork for load testing?
  • I'm looking to buy a used car - please help me compare these two: 2000 Celica and 1998 Eclipse?
  • The questions and answers post by the user, for information only, AnswersRoom.com does not guarantee the right
    Copyright © 2007 AnswersRoom.com -   Terms of Use -   Contact us

    Hot Topic