How to Detect IE in ColdFusion

by Matthew Weeks

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)

1

Open the document in which you wish to run the browser check.

2

Insert the following code where you wish to place the conditional action:

--- conditional action ---

(See Reference 1)

3

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)

About the Author

Matthew Weeks has been a public policy and technology writer since 2003. He has been published on Men's News Daily and Free Republic. Weeks holds a bachelor's degree in political science from the College of New Jersey and a master's degree in public policy from Rutgers.

Photo Credits

  • photo_camera Comstock/Comstock/Getty Images