| General Databases (73) Linux (41) Outside the Cube (5072) Programming (679) Web publishing (65) about DelphiFAQ (14) JavaScript (31) perl CGI (3) VBScript (1) Web Hosting (8) Windows (431) |
Internet Explorer displays blank page, which works in Firefox
Question: I have a HTML file with embedded style definitions that displays properly in Firefox, but Internet Explorer only shows a blank page.What could be the reason? Answer: I reviewed your HTML. I found the following style definition near the top of your page.<style type="text/css"> <!-- a:link { text-decoration:none;color:blue; } //--> </style> This does indeed work in Firefox but not in Internet Explorer. Remove the '<!--' and the '//-->' (comments) from the style so that it looks like this: <style type="text/css"> a:link { text-decoration:none;color:blue; } </style> Then it will work both in Internet Explorer and in Firefox. The <!-- ... //--> is used in Javascript, in case the page is viewed with a browser that does not understand the <script> tag.
Comments:
| |||||||||