JS 弹框

var _taction = "/"+item+"/analysis-m.html";  

	 _headaction = _taction.substring(0, _taction.indexOf('?'));  

	 _tailaction = _taction.substring(_taction.indexOf('?') + 1);  

	 var _name = _tailaction.substring(0, _tailaction.indexOf('='));  

	 var _value = _tailaction.substring(_tailaction.indexOf('=') + 1);  

	 var _FORM = document.createElement('form');  

	 document.body.appendChild(_FORM);  

	 _FORM.action = _taction;  

	 _FORM.method = 'post';  

	 _FORM.target = '_blank';  

	 var _input = document.createElement('input');  

	 _input.type = 'hidden';  

	 _input.name = _name;  

	 _input.value = _value;  

	 _FORM.appendChild(_input);  

	 _input = null;  

	 _FORM.submit(); 

你可能感兴趣的:(js)