51help TIY
码:
<html> <head> <script type="text/javascript"> function mymessage() { alert("该消息被 onload 事件触发") } </script> </head> <body onload="mymessage()"> </body> </html>
查看结果: