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)
mNo edit summary
Shane (talk | contribs)
No edit summary
Line 1: Line 1:
/* <pre><nowiki> */
addOnloadHook( myFunction );
addOnloadHook( myFunction );


Line 4: Line 6:


addOnloadHook( function() {
addOnloadHook( function() {
     alert("hi");
     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> */