Top "Onload" questions

'onload' is a JavaScript event that is run when a document is loaded.

Click function firing on pageload?

Trying to figure out how this is possible... $(function() { $('#saveBtn').click(save()); }); function save(){ alert('uh'); } . <form id="…

javascript jquery onload jquery-events mouseclick-event
Dojo addOnLoad, but is Dojo loaded?

I've encountered what seems like a chicken & egg problem, and have what I think is a logical solution. However, …

dom dojo onload
External JS with onLoad Event

I have an external js file which has a function that is meant to run AFTER the document body has …

onload external-js
iframe onload in IE7/8 with Javascript

I have an iframe loading into a parent page. The iframe contains a sequence of forms, and I'd like to …

javascript internet-explorer iframe onload
return value calculated from javascript FileReader onload event

I have this function: function doStuff(range, file) { var fr = new FileReader(); var hash = ''; fr.onload = function (e) { var …

javascript callback onload filereader
Javascript onload event - how to tell if script is already loaded?

How can I use javascript to determine if an HTMLScriptElement has already been fully loaded? How can I determine if …

javascript dynamic onload
How to call function after document ready AND image load?

I was using something like this: $(document).ready(function() { $('#my-img').load(function() { // do something }); }); But sometimes it fails to …

javascript jquery image onload
jQuery .ready() for infopath form?

I have an infopath form that I want to modify via jQuery. The only problem is that it loads after …

jquery infopath onload ready
Force Inner-iframe Content to Scroll To Top On Pageload

All of my website's 'content pages' open inside of an iframe on my index page. I am using a onload="…

javascript iframe onload scrolltop scroll-position
Can I sync up multiple image onload calls?

I want a function to run when specific images are loaded, but I don't know how to wait for both …

javascript image function onload