`
vtyi
  • 浏览: 82203 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

IE and Firefox

阅读更多

在IE和Opear下,DOM对象支持innerText属性,可以很方便的去除HTML标签。
但在Firefox不支持该属性,FF下的DOM对象支持textContent,该属性与innerText等效。

function getInnerText(obj){

      return document .all?obj.innerText:obj.textContent;

}

var str = getInnerText(document .getElementById ("TestObj" ));

alert(str);

 

var lBrowser = {};

navigator .userAgent.toLowerCase ();

lBrowser.isW3C = document .getElementById ? true :false ;

lBrowser.isIE = ((lBrowser.agt.indexOf ("msie" ) != -1) && (lBrowser.agt.indexOf ("opera" ) == -1) &&(lBrowser.agt.indexOf ("omniweb" ) == -1));

lBrowser.isNS6 = lBrowser.isW3C && (navigator .appName=="Netscape" ) ;

lBrowser.isOpera = lBrowser.agt.indexOf ("opera" ) != -1;

分享到:
评论

相关推荐

    flashplayer for ie and firefox

    flashplayer for ie and firefox

    difference between IE and Firefox

    IE和Firefox下开发时会遇到的问题

    WebCollect for IE and Firefox

    The WebCollect add-on allows you to capture webpages or snippets including linked images directly from Internet Explorer or Mozilla Firefox and save with myBase without having to first save ...

    firebug for IE6+, Firefox, Opera, Safari and Chrome

    NULL 博文链接:https://justcoding.iteye.com/blog/982555

    Firefox and Thunderbird Garage

    According to spreadfirefox.com, to-date there have been ~ 23 million downloads since the release of Firefox 1.0 in September 2004, and MS IE usage has been dropping at the same time. Thunderbird has ...

    ADVANCED.JAVA.B01B6Z954E

    It covers virtually most of core features and some of the advanced features of Web site Development including more than hands on examples tested in popular Web browser like Chrome, IE and Firefox and ...

    Advanced.JAVA.Laboratory.Manual.B01BB1

    It covers virtually most of core features and some of the advanced features of Web site Development including more than hands on examples tested in popular Web browser like Chrome, IE and Firefox and ...

    httpwatchpro

    HttpWatch is an integrated HTTP sniffer for IE and Firefox that provides new insights into how your website loads and performs.

    Selenium3.13及谷歌、火狐、IE浏览器的驱动

    1、火狐浏览器的驱动geckodriver-v0.21.0-win64.zip适用于版本Firefox 57 (and greater),适用于Selenium 3.11 (and greater) 2、谷歌浏览器的驱动ChromeDriver 2.41支持Chrome v67-69

    好用的web开发调试工具httpwatch

    HttpWatch is an HTTP viewer and debugger that integrates with IE and Firefox to provide seamless HTTP and HTTPS monitoring without leaving the browser

    HttpWatch.Professional.v8.5.27(带lic)

    HttpWatch is an integrated HTTP sniffer for IE and Firefox that provides new insights into how your website loads and performs.

    HttpWatch.Professional.v9.1.21(带lic)

    HttpWatch is an integrated HTTP sniffer for IE and Firefox that provides new insights into how your website loads and performs.

    ie下类似火狐Firebug的插件

    ie下类似火狐Firebug的插件 Internet Explorer Developer Toolbar Instructions After installing the Developer Toolbar, restart Internet Explorer and click the Developer Toolbar icon in the command bar to ...

    HttpWatch6.0破解版

    HttpWatch is an HTTP viewer and debugger that integrates with IE and Firefox to provide seamless HTTP and HTTPS monitoring without leaving the browser window. Change the way that you develop, debug ...

    xslt资料大全(xslt扩展函数)

    xslt手册.chm java实现xslt 简单的 Xalan 扩展函数 - 工程 xslt知识点速查手册.doc 2 Javascript XSLT 处理XML文件(IE and Firefox).doc Saxon 剖析 XSLT 处理器.doc

    IEInspector.HTTP.Analyzer.Full.Edition.v5.3.1.Incl.Keymaker-ZWT[程序文件+注册机]

    Add-on Edition: An add-on that integrates into the lower part of your IE or Firefox window and can be opened/closed from the IE or Firefox toolbar. It can only capture and view ...

    ajax精简框架1.2

    Firefox, google, the object encapsulates the ajax Compact Framework, can be directly used in embedded projects Description: For more on the extended period for repair ajax upload some bug, add user-...

    CSS Hack(Safari、Opera、Firefox3和IE7)

    仅 Firefox 3 和 IE7 识别的 Hack。 1、仅 Safari 和 Opera 识别的 Hack @media all and (min-width: 0px){/* Safari and Opera rules here */} 或者 @media screen and (-webkit-min-device-pixel-ratio:0) {/* ...

    HttpWatch.Professional.v8.5.27-DOA.rar

    HttpWatch is an HTTP viewer and debugger that integrates with Internet Explorer to provide seamless HTTP and ...» Support IE8 and Firefox 3.5

    ie tab 1.5.20090207

    This is a great tool for web developers, since you can easily see how your web page displayed in IE with just one click and then switch back to Firefox.

Global site tag (gtag.js) - Google Analytics