|
Re: Order of onload events: msg#00034mozilla.devel.dom
Jiri Znamenacek wrote: If I have the page with IFRAME and the document loaded into IFRAME is on onload calling a script in the main page (the page containing the IFRAME), will this script be already accessible? (Well, typically the script will be parsed before IFRAME tag, but I don't know if I can take it for sure that onload on IFRAMEd document will always succeed.) If the <script> element is before the <iframe> element in your source HTML document then I think you can assume that the script content is parsed and function/variables are available to the onload handler of the iframe's document. The exception is <script defer type="text/javascript">...</script> but only IE supports that currently, Mozilla and Opera do not. -- Martin Honnen http://JavaScript.FAQTs.com/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Order of onload events: 00034, Jiri Znamenacek |
|---|---|
| Next by Date: | Re: How to load the Search Sidebar Panel using Javascript?: 00034, Martin Honnen |
| Previous by Thread: | Order of onload eventsi: 00034, Jiri Znamenacek |
| Next by Thread: | recursive function + event : is this legal/supported ?: 00034, rvj |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |