JavaScript 参考手册
Frameset onload Event
框架集载入完成后弹出 "Page is loaded"
源代码:
点击运行 »
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>蜜蜂教程(mifengjc.com)</title> <script> function load() { alert("页面已加载"); } </script> </head> <frameset onload="load()" cols="50%,50%"> <frame src="/examples/frame_a.htm"> <frame src="/examples/frame_b.htm"> </frameset> </html>
运行结果:
点击运行 »