confirm box or alert box need twice click
I recently install safari on my Window XP System. I use it to visit a web site,if there is a button can popup a confirm box,I need to click[OK] twice to close it. Then I write a HTML page with javascript to test it.
when I write the javascript function confirm() or alert() in the onload() event,it works well,click once and it's closed.
but when I write the javascript function confirm() or alert() in a button click event, I need to click twice to close it.
I think it's a bug, and I have no idea to deal with it.
By the way,My safari version is 5.0.4
How to fix it? anybody who can help me?