"marik" <sm****@t2.technion.ac.ilwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
So can you please show me how can it be done ( lets say I have page
A.html in which the combo box is, and I have page B.html that I want to
refresh every interval, that I put through the combo box)?
Will this work for you? Watch for word-wrap.
<html>
<head>
<title>refresh.htm</title>
<script type="text/javascript">
var sec;
var url = "http://www.google.com/index.html";
function pick() {
sec = document.getElementById("opt").value;
if (sec != "") show();
}
function show() {
window.open(url,"win","");
setTimeout("show()",sec*1000);
}
</script>
</head>
<body>
<form>
<b>Refresh Google every:</b>
<br>
<select id="opt" onchange="pick()">
<option value="">
<option value="5">5 seconds
<option value="30">30 seconds
<option value="60">60 seconds
</select>
</form>
</body>
</html>
This will work as long as "refresh.htm" is running.