Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #12758
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
|---|---|
| From | Guerino1 <fguerino0@gmail.com> |
| Newsgroups | comp.lang.javascript |
| Subject | Best way to execute a function after a page is fully loaded? |
| Date | Thu, 15 Mar 2012 07:18:06 -0700 (PDT) |
| Organization | http://groups.google.com |
| Lines | 23 |
| Message-ID | <5556880.249.1331821086035.JavaMail.geo-discussion-forums@vbnd9> (permalink) |
| NNTP-Posting-Host | 208.54.87.167 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | posting.google.com 1331821086 14617 127.0.0.1 (15 Mar 2012 14:18:06 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Thu, 15 Mar 2012 14:18:06 +0000 (UTC) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=208.54.87.167; posting-account=jBPBKgoAAACXBcpkqPOg3l_ShCsoi1Kl |
| User-Agent | G2/1.0 |
| X-Received-Bytes | 1501 |
| Xref | csiph.com comp.lang.javascript:12758 |
Show key headers only | View raw
Hi,
I'd like to automatically execute a function after all the HTML body elements have been loaded? I know there are a number of way to invoke functions (based on events and so on). I'm looking for opinions on what the group things are the best ways to do so.
For example...
<body>
<div id="div_1"></div>
<div id="div_2"></div>
<script>
// <----- Would like to "always" execute function "foo()" at this point.
</script>
<body>
Does anyone have any suggestions?
Thanks,
Frank
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
Best way to execute a function after a page is fully loaded? Guerino1 <fguerino0@gmail.com> - 2012-03-15 07:18 -0700
Re: Best way to execute a function after a page is fully loaded? Hans-Georg Michna <hans-georgNoEmailPlease@michna.com> - 2012-03-15 16:06 +0100
Re: Best way to execute a function after a page is fully loaded? Guerino1 <fguerino0@gmail.com> - 2012-03-15 09:44 -0700
Re: Best way to execute a function after a page is fully loaded? "J.R." <groups_jr-1@yahoo.com.br> - 2012-03-15 22:31 -0300
csiph-web