The popup below has the item "FAIL" selected by default in the html, but a javascript function triggered from the body's onload changed it to "PASS" (assuming you saw an alert telling you so).
Problem: In old versions of WebKit the change was not visible until you click on the popup.