Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

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.
Shane (talk | contribs)
No edit summary
Shane (talk | contribs)
No edit summary
Line 2: Line 2:


addOnloadHook( myFunction );
addOnloadHook( myFunction );
Functions can also be written inline as


addOnloadHook( function() {
addOnloadHook( function() {

Revision as of 05:48, 21 April 2006

/* <pre><nowiki> */

addOnloadHook( myFunction );

addOnloadHook( function() {
    myFunction () { alert("test"); }
} );

/* </nowiki></pre> */