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