html - How to - If using IE8 don't load web content -
i have web site functional ie8. have web site displaying banner takes visitor upgrade ie. i'd more...
what i'd is, display banner in addition message says "sorry browser not meet requirements view site". don't want load other page content.
is there way don't load rest of page in ie if statement?
<!--[if lt ie 8]> <div style=' clear: both; text-align:center; position: relative;'> <a href="http://windows.microsoft.com/en-us/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode"><img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="you using outdated browser. faster, safer browsing experience, upgrade free today." /></a> </div> -- here want don't load else. -- maybe automatically redirect blank page? <![endif]-->
the basic structure such document:
<body> <!--[if lte ie 8] <div style=' clear: both; text-align:center; position: relative;'> <a href="http://windows.microsoft.com/en-us/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode"><img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="you using outdated browser. faster, safer browsing experience, upgrade free today." /></a> </div> <![endif]--> <!--[if gt ie 8] --> rest of document goes here. browsers except ie 8 , below parse this. ..content... rigth @ end close conditional. <!-- <![endif]--> </body> </html>
note should lte ie 8
exclude version 8.
Comments
Post a Comment