DelphiFAQ Home Search:



Databases
InterBase, MS-SQL, mysql, Oracle
Programming
C#, C++, Delphi, Java,
JavaScript, perl, php, Visual Basic, VBScript
Linux
Apache, Network, Shell
Web Publishing
JavaScript, perl CGI, VBScript, Web Hosting
Windows
Apache, File Types, Internet Explorer,
Network, Printing, Processes
Outside the Cube
Auto, Computer Hardware,
Finances, Dating Scams,
Household, Male Dating Scammers,
Other Scams, Travel

Articles:

This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Featured Article

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.


Generated 0:02:45 on Mar 1, 2015