window.onload

<!doctype html> <html> <head> <title>ejemplo onload</title> <script> function load(){ alert("evento load detectado!") } window.onload=load; </script> </head> <body> <p>el evento load se dispara cuando el documento ha terminado de cargarse!</p> </body> </html>
window.onload = function() {
init();
doSomethingElse();
};

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.