页面的中转

function doView(id){
 var url = "X007_view.do?form.infoId="+id;
 var windowName = "X007_view";
 var width = 980;
 var height = 500;	
 var popupWindow = window.open("",windowName,
  "width="+width+",height="+height+",left=50,top=84,titlebar=no,status =no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
 var frm = document.createElement("FORM"); 
 document.body.appendChild(frm);
 frm.method = "POST";
 frm.target=windowName;
 frm.action=url;
 frm.submit();
 frm.target="_self";
 popupWindow.focus();
}

function doShowElisor(elisorId){
 var frm = document.createElement("FORM"); 
 document.body.appendChild(frm);
 frm.method = "POST";
 frm.target= "main";
 frm.action="S003_search.do?form.hidParent=" + elisorId;
 frm.submit();
}

function add_feedback(){
	location.href("riskassessment_add.do");
}

<input type="button" onclick="javascript:location.href('riskassessment_init.do?menuTabFlag=0');">

你可能感兴趣的:(JavaScript,jsp)