Bug 14821

Summary: document.write displays blank page when onclick
Product: WebKit Reporter: Pat <vincent.bradley>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal Keywords: HasReduction
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: All   
OS: All   
URL: http://www.w3schools.com/js/tryit.asp?filename=tryjs_prompt
Attachments:
Description Flags
reduce test case none

Attachments
reduce test case (376 bytes, text/html)
2007-07-30 17:54 PDT, Pat
no flags
Pat
Comment 1 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>
Pat
Comment 2 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
Pat
Comment 3 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
Darin Adler
Comment 4 2007-08-02 18:48:53 PDT
*** This bug has been marked as a duplicate of 14709 ***
Note You need to log in before you can comment on or make changes to this bug.