Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 OS-All Area-Misc

New issue 15021 by marko.srepfler: w3schools DEMO not working
http://code.google.com/p/chromium/issues/detail?id=15021

Chrome Version       : 3.0.189.0
URLs (if applicable) : http://www.w3schools.com/JS/tryit.asp?
filename=tryjs_confirm
Other browsers tested:
   Add OK or FAIL after other browsers where you have tested this issue:
      Safari 4:
   Firefox 3.x: OK
          IE 7:
          IE 8: OK

What steps will reproduce the problem?
1. Click button
2. not displaying You pressed OK!
3.

What is the expected result?
You pressed OK!

What happens instead?
Blank

Please provide any additional information below. Attach a screenshot if
possible.

<html>
<head>
<script type="text/javascript">
function show_confirm()
{
var r=confirm("Press a button");
if (r==true)
   {
   document.write("You pressed OK!"); // NEVER EXECUTE
   }
else
   {
   document.write("You pressed Cancel!");
   }
}
</script>
</head>
<body>

<input type="button" onclick="show_confirm()" value="Show a confirm box" />

</body>
</html>


Attachments:
        testif.html  361 bytes

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to