常用简短
----------------
var coll = document.frm.elements;
--------------------
if( confirm("Do you really want to reject this request?")){
document.forms[0].dispatch.value="rejectProjJoinReq";
document.forms[0].action="./worklist.do";
document.forms[0].submit();
}else{
return false;
}
<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
<!--
//出处:网上搜集
//made by yaosansi 2005-12-02
//For more visit http://www.yaosansi.com
// trim() , lTrim() , rTrim()
String.prototype.trim = function()
{
return this.replace(/(^\s*)|(\s*$)/g, "");
}
String.prototype.lTrim = function()
{
return this.replace(/(^\s*)/g, "");
}
String.prototype.rTrim = function()
{
return this.replace(/(\s*$)/g, "");
}
//-->
</SCRIPT>
-----------------
<BODY onmouseup=document.selection.empty() oncontextmenu="return false"
onselectstart="return false" ondragstart="return false"
onbeforecopy="return false" oncopy=document.selection.empty()
onselect=document.selection.empty()>
posted on 2009-09-22 02:20 dolphin_bobo 阅读(218) 评论(0) 编辑 收藏 举报