 |
|
|  |
javascript·Î IE6, IE7 ±¸ºÐÇϱâ |
|
|
 |
14³â Àü |
ie6¸¦ js·Î °Ë»ç¸¦ ÇؾßÇÒ ÀÏÀÌ »ý°Ü¼ ´Ü¼øÈ÷ AgentÁ¤º¸¸¸À¸·Î ºÐ±â¸¦ Çߴµ¥
navigator.userAgent.indexOf('MSIE 6')>-1
Çϸ鼵µ ²À ¹®Á¦°¡ »ý±æ°Í °°´Ù´Â ¸¾¿¡ µé¸é¼µµ ±ÞÇÏ´Ù´Â ÀÌÀ¯·Î Àß ¾È ã¾Æº»°Ô ½Ç¼ö ¿´³×¿ä
IE7 ¿¡¼´Â navigator.userAgent ¿¡ ¾Æ·¡¿Í °°Àº °ªÀÌ Àֱ⶧¹®¿¡ À§¿Í°°Àº ÄÚµå·Î ºñ±³¸¦ ÇÏ¸é ¾ÈµÇ°ÚÁÒ
agent Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; InfoPath.2)
ºê¶ó¿ìÀú °ËÃâÀº AgentÁ¤º¸·Î½á ºÐ±âÇϴ°ͺ¸´Ù ¸Þ¼Òµå·Î½á ºÐ±â ÇÏ´Â°Ô ´õ È¿°úÀûÀÔ´Ï´Ù
if(document.all)
{
if (!window.XMLHttpRequest ) document.write('ie6 ÀÌ¿©¿ä');
else document.write('ie6 ÀÌ ¾Æ´Õ´Ï´Ù');
}
¶Ç ´Ù¸¥ °ËÃâ¹æ¹ýÀº ¾Æ·¡¿¡¼ ã¾Æ º¼¼ö ÀÖ½À´Ï´Ù
http://ajaxian.com/archives/detecting-ie7-in-javascript
http://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=tipntech&wr_id=65788
|
|
̵̧ : 244 |
̵̧
¸ñ·Ï
|
|
|  |
|