DelphiFAQ Home Search:

Internet Explorer displays blank page, which works in Firefox


comments3 comments. Current rating: 3 stars (1 votes). Leave comments and/ or rate it.


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?


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; }

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; }

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.


2012-05-14, 02:33:48
Thanks a lot. You are so smart!!!!! Saved me hours of work :D
2012-11-12, 02:49:40
anonymous from United Kingdom  
2017-07-30, 13:48:52
dukunsantetampuh from Indonesia  



NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: