示例
<!DOCTYPE html> <html> <body ononline = "onlineFunc()" onoffline = "offlineFunc()"> <script> function onlineFunc() { alert ("Working online!"); } function offlineFunc() { alert ("Workinf offline!"); } </script> <p>Got o the web browser menu bar and click the File menu. Select "Work Offline" and toggle between online and offline.</p> </body> </html>
以上就是当浏览器开始在线工作时,在HTML中执行一个脚本吗?的详细内容,更多请关注php中文网其它相关文章!
已抢187098个
抢已抢67503个
抢已抢353780个
抢已抢668470个
抢已抢123885个
抢已抢26083个
抢