JavaScript + CSS 让超链接提交表单

  function changecss(a){
		a.style.cssText = 'COLOR:#800080;cursor:pointer;';
	}
	function comebackcss(a){
		a.style.cssText ='';
	}
	function modify(){
		document.forms[1].submit();
	}


<a  onclick="modify()" onmouseover="changecss(this)" onmouseout="comebackcss(this)">修改</a>

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