---- <script> document.write button no show, but <noscript> button yes?
Fotiman - 8:02 pm on Sep 25, 2013 (gmt 0)
Your document.write statement is malformed... you used single quotes for all of the attribute values as well as surrounding the entire string. Also: 1. The type attribute is not needed, so omit it unless you require it for validating as HTML4 or XHTML. 2. Don't wrap the contents of script tags in HTML comments. It's an obsolete practice, as that was only needed for version 1 Netscape and Mosaic browsers (hasn't been needed for over a decade). 3. Ideally, you should avoid using document.write in favor of using DOM methods to write to your document. 4. Ideally, you should avoid inline event handlers because it mixes content with behavior (best to put script in a separate .js file). Also, instead of onClick, you're better to use onclick as it's more portable (XHTML requires all lowercase attributes). 5. For accessibility and usability reasons, it's generally a bad idea to open new windows without toobar/menubar. With all that said, here's the minimum changes I would make to your code: