Bug 14821 - document.write displays blank page when onclick
Summary: document.write displays blank page when onclick
Status: RESOLVED DUPLICATE of bug 14709
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 523.x (Safari 3)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://www.w3schools.com/js/tryit.asp...
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2007-07-30 17:51 PDT by Pat
Modified: 2007-08-03 05:22 PDT (History)
0 users

See Also:


Attachments
reduce test case (376 bytes, text/html)
2007-07-30 17:54 PDT, Pat
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Pat 2007-07-30 17:54:06 PDT
Created attachment 15752 [details]
reduce test case

The text of the reduce test case:

<html>
<head>
<script type="text/javascript">
function disp_prompt()
  {
  var name=prompt("Please enter your name","Harry Potter")
  if (name!=null && name!="")
    {
    document.write("Hello " + name + "! How are you today?")
    }
  }
</script>
</head>
<body>
<input type="button" onclick="disp_prompt()" value="Display a prompt box" />
</body>
</html>
Comment 2 Pat 2007-07-30 18:00:43 PDT
Tested on
MacOS 10.4.4
Safari 2.0.3 (417.8)

WinXP
Safari 3.0 (522.11.3)

S60 3.2
Comment 3 Pat 2007-07-30 18:05:36 PDT
Fails on:
- MacOS 10.4.4 Safari 2.0.3 (417.8)
- WinXP Safari 3.0 (522.11.3)
- S60 3.2

Works on:
- IE 6.0
- Firefox 2.0.05

Comment 4 Darin Adler 2007-08-02 18:48:53 PDT

*** This bug has been marked as a duplicate of 14709 ***