That's exactly the behavior I expected... odd that I didn't see it (IE7 and FF3.0.4 on XP). I can buy it's browser-dependent, just odd to hear that FF3 would be different on OSX than on Windows. Oh well, that's just *MORE* support for the idea of not using document.write() after the page has loaded :)

Frank
--- On Tue, 12/9/08, Frank W. Zammetti wrote:
[...] I actually expected the alert() to NOT work because I figured the document.write() call was overwriting your page, which would have made sense, but it appears document.write() actually appends to the document. I wouldn't swear to that, but that's what seems to be the case given my test.

It's browser-dependent; on OSX/FF3 the form is gone after the document.write() 
(at least when Firebug is installed...) so I get an error.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__________ Information from ESET Smart Security, version of virus signature 
database 3679 (20081209) __________

The message was checked by ESET Smart Security.

http://www.eset.com






--
Frank W. Zammetti
Author of "Practical Dojo Projects"
 and "Practical DWR 2 Projects"
 and "Practical JavaScript, DOM Scripting and Ajax Projects"
 and "Practical Ajax Projects With Java Technology"
 (For info: apress.com/book/search?searchterm=zammetti&act=search)
My "look ma, I have a blog too!" blog: zammetti.com/blog


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to