在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
IE和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 ...
NULL 博文链接:https://justcoding.iteye.com/blog/982555
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 ...
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 ...
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 ...
HttpWatch is an integrated HTTP sniffer for IE and Firefox that provides new insights into how your website loads and performs.
1、火狐浏览器的驱动geckodriver-v0.21.0-win64.zip适用于版本Firefox 57 (and greater),适用于Selenium 3.11 (and greater) 2、谷歌浏览器的驱动ChromeDriver 2.41支持Chrome v67-69
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 is an integrated HTTP sniffer for IE and Firefox that provides new insights into how your website loads and performs.
HttpWatch is an integrated HTTP sniffer for IE and Firefox that provides new insights into how your website loads and performs.
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 ...
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手册.chm java实现xslt 简单的 Xalan 扩展函数 - 工程 xslt知识点速查手册.doc 2 Javascript XSLT 处理XML文件(IE and Firefox).doc Saxon 剖析 XSLT 处理器.doc
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 ...
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-...
仅 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 is an HTTP viewer and debugger that integrates with Internet Explorer to provide seamless HTTP and ...» Support IE8 and Firefox 3.5
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.