As a javascript developer using onload often you will find that other script authors too love to use onload. Comme un développeur utilisant javascript onload souvent, vous trouverez que d'autres auteurs script trop d'amour à utiliser onload. Unfortunately onload accepts a function name and your reassigning will prevent others from using onload. Malheureusement onload accepte un nom de fonction et de votre volonté de réaffecter empêcher les autres d'utiliser onload. Here is a script which allows you to use onload even when others have used it and without breaking their script. Voici un script qui vous permet d'utiliser onload même lorsque d'autres l'ont utilisé et sans rupture de leur script.

The key idea is that you should be able to stack your function(s) above / below existing function call. L'idée maîtresse est que vous devriez être en mesure d'empiler votre fonction (s) ci-dessus ou au-dessous du existantes appel de fonction. Let’s look at the sample code below: Regardons l'exemple de code ci-dessous:

I think I have well commented the code to make the script self-explanatory, but feel to ask questions. Je pense avoir bien commenté le code pour en faire le script d'auto-explicative, mais l'impression de poser des questions. The code has been tested on Firefox, Internet Explorer and Opera. Le code a été testé sur Firefox, Internet Explorer et Opera.