JavaScript判断各种浏览器
function getOs(){
var OsObject = "";
if(navigator.userAgent.indexOf("MSIE")>0) {
return "MSIE";
}
if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){
return "Firefox";
}
if(isSafari=navigator.userAgent.indexOf("Safari")>0) {
return "Safari";
}
if(isCamino=navigator.userAgent.indexOf("Camino")>0){
return "Camino";
} if(isMozilla=navigator.userAgent.indexOf("Gecko/")>0){
return "Gecko";
}
}
相关文档:
Siebel支持在浏览器的地址栏使用javascript
例如
javascript:alert(theApplication().GetProfielAttr("Employee Flag");
javascript:var sBo = theApplication().ActiveBusObject();sBc = sBo.GetBusComp("Contact");alert(sBc.GetFieldValue("Last Name")); ......
提供一个简单的例子:
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Key ......
1.document.write(""); 输出语句
2.JS中的注释为//
3.传统的HTML文档顺序是:document->html->(head,body)
4.一个浏览器窗口中的DOM顺序是:window->(navigator,screen,history,location,document)
5.得到表单中元素的名称和值:document.getElementById("表单中元素的ID号").name(或value)
6.一个小写转大 ......