Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Page refresh only once - reg
- From: apwebdesign at yahoo.com (Anthony Ettinger)
- Subject: [Javascript] Page refresh only once - reg
- Date: Sat Oct 15 11:39:29 2005
> my code is...
>
> <script language=javascript>
> function pagereload()
> {
> window.location.reload();
> }
> </script>
> that function called in body onLoad event
>
> <body onLoad="pagereload()">
>
> this function is working but it will do in loop.
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: http://www.chovy.com
- Follow-Ups:
- [Javascript] Page refresh only once - reg
- From: Flavio Gomes
- [Javascript] Page refresh only once - reg
- References:
- [Javascript] Page refresh only once - reg
- From: Jai Sankar N
- [Javascript] Page refresh only once - reg
- Prev by Date: [Javascript] Page refresh only once - reg
- Next by Date: [Javascript] Re:Refresh the page only once-reg
- Previous by thread: [Javascript] Page refresh only once - reg
- Next by thread: [Javascript] Page refresh only once - reg
- Index(es):