onload="window.open code example
Example 1: window.onload
window.onload = function() {
// Some code
};
Example 2: window.onload
window.onload = function() {
init();
doSomethingElse();
};
window.onload = function() {
// Some code
};
window.onload = function() {
init();
doSomethingElse();
};