window open方法
//打开窗口属性定制
var width = "600"; //窗口宽度
var height = "300"; //窗口高度
var resizable = "No"; //是否可调整大小
var apply_id = "";
function newRecord(apply_id)
{
var urlTo = "/super/app/template.jsp?mainobj=AM/AM_CGSQ&tfile=RQ_LIST/selecttree&apply_id=" + apply_id;
var retValue = window.open(urlTo,"","height=" + 600 + ",width=" + width + ", resizable="+ resizable +",status=no,center=yes,top=30,left=350");
}
Location对象的使用
location.reload();此位置页面重新加载
location.href 链接
状态栏
window.defalutStatus='';状态栏默认信息
window.status='';状态栏的瞬间信息
opener对象
打开窗口的父窗口对象
window.setInterval("函数名",时间(秒));周期执行
window.setTimeout("函数名",时间(秒));延迟加载
window.clearTimeout(id);这里的 id是window.setTimeout("函数名",时间(秒));返回的参数
无标题文档//javascript 创建元素 给元素属性赋值
var yearSelect = document.createElement("select");
yearSelect.setAttribute("id","yearSelect");
yearSelect.setAttribute("onchange","changeDeadTime(this)");