Safari5中alert的BUG
如下,alert无限循环下去
<!DOCTYPE htmlt> <html> <head> <meta charset="utf-8"> </head> <body onclick="alert(3)"> <p>Safari alert Bug</p> </body> </html>
猜测Safari5中将点击alert框的确定按钮也当成点击body了。事件一直冒泡到弹出框上。
If you cannot hear the sound of the genuine in you, you will all of your life spend your days on the ends of strings that somebody else pulls.
如下,alert无限循环下去
<!DOCTYPE htmlt> <html> <head> <meta charset="utf-8"> </head> <body onclick="alert(3)"> <p>Safari alert Bug</p> </body> </html>
猜测Safari5中将点击alert框的确定按钮也当成点击body了。事件一直冒泡到弹出框上。