Microsoft's Internet Explorer web browser is famous for giving web developers headaches, thanks to its unique rules for rendering styles and HTML tags. As a ColdFusion developer, you may wish to run a check to see which web browser a visitor is using before proceeding with a given action. Fortunately, ColdFusion makes this possible through its integration of standard CGI scope variables, including the one that searches for and recognizes the type and version of the browser being used to view your page. (See Reference 1)
Open the document in which you wish to run the browser check.
Insert the following code where you wish to place the conditional action:
<cfif #CGI.HTTP_USER_AGENT# CONTAINS "MSIE">
--- conditional action ---
(See Reference 1)
Save and publish your page. Your conditional action will now only process if your visitor is using a version of Internet Explorer. (See Reference 1)
- Photo Credit Comstock/Comstock/Getty Images
How to Find Out When a Web Page Was Last Updated
It's important to know the last time a webpage was updated. The date lets you know if you are getting current information....
Internet Explorer Printing Problems
If you're having trouble printing from Internet Explorer, you are not alone. The good news is that printing errors are usually fixed...
How Do I Delete My Browser History?
You May Also Like. How to Find Deleted History. Find the deleted history on your computer by using this guide. This article...
How to DeBug Your Computer
Viruses. Spam. Slow downloads. If you have any of these problems, you'll want to read this article. This article will share simple...