On The Rocks

October 10, 2006

Detectar o IE7 por javascript

Filed under: Uncategorized

Para detectar se o browser é o IE7, em javascript, faz-se da seguinte forma

if (typeof document.body.style.maxHeight != "undefined") {
  // IE 7, mozilla, safari, opera 9
} else {
  // IE6, older browsers
}

Comments »

The URI to TrackBack this entry is: http://ontherocks.blogsome.com/2006/10/10/detectar-o-ie7-por-javascript/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.

Get free blog up and running in minutes with Blogsome
Theme designed by Jay of onefinejay.com