User:Shane/bsgbook.js: Difference between revisions
From the only original and legitimate Battlestar Wiki: the free-as-in-beer, non-corporate, open-content encyclopedia, analytical reference, and episode guide on all things Battlestar Galactica. Accept neither subpar substitutes nor subpar clones.
More actions
mNo edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* <pre><nowiki> */ | |||
addOnloadHook( myFunction ); | addOnloadHook( myFunction ); | ||
| Line 4: | Line 6: | ||
addOnloadHook( function() { | addOnloadHook( function() { | ||
alert(" | myFunction () { alert("test"); } | ||
} ); | } ); | ||
/* </nowiki></pre> */ | |||
Revision as of 22:10, 13 April 2006
/* <pre><nowiki> */
addOnloadHook( myFunction );
Functions can also be written inline as
addOnloadHook( function() {
myFunction () { alert("test"); }
} );
/* </nowiki></pre> */