<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
No, Anthony, he is refreshing the page on the <b>onload</b> event.
Yes, that's a loop..<br>
<br>
Instead of using <b>reload()</b> couldnt you try to use <b>window.location.href=window.location.href+
'?reloaded=yes'</b> <br>
Then you check the queryString for the <b>reloaded</b> var before <b>reload()'ing.</b><br>
<br>
<br>
<pre class="moz-signature" cols="72">--
Flavio Gomes
<a class="moz-txt-link-abbreviated" href="mailto:flavio@economisa.com.br">flavio@economisa.com.br</a>
</pre>
<br>
Anthony Ettinger wrote:
<blockquote cite="mid20051015163925.6242.qmail@web51104.mail.yahoo.com"
type="cite">
<blockquote type="cite">
<pre wrap="">my code is...
<script language=javascript>
function pagereload()
{
window.location.reload();
}
</script>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">that function called in body onLoad event
<body onLoad="pagereload()">
this function is working but it will do in loop.
</pre>
</blockquote>
<pre wrap=""><!---->
window.location.pagereload(); <-- is this what you
mean?
If so, you're calling it recursively.
All you need is to put this at the top of your js
file:
window.onload = init();
function init()
{
//initialize form
}
Anthony Ettinger
ph: (408) 656-2473
blog: <a class="moz-txt-link-freetext" href="http://www.chovy.com">http://www.chovy.com</a>
_______________________________________________
Javascript mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</a>
<a class="moz-txt-link-freetext" href="https://lists.LaTech.edu/mailman/listinfo/javascript">https://lists.LaTech.edu/mailman/listinfo/javascript</a>
</pre>
</blockquote>
</body>
</html>