判断题
我有一个修改页面,里边有form,对应提交按钮submit1,form里边包含一个iframe,对应iframe有一个提交submit2,另外iframe对应的字段为photo,怎样判断只要photo这个字段一有改动,如果没按submit2的话就出现提示,如果没改动则不提示
------解决方案--------------------第一个页面:
<body>
<iframe src= "text0.asp " height= "600 " width= "1024 " marginheight= "0 " marginwidth= "0 " name= "iframe1 "> </iframe>
<iframe src= "text3.asp " height= "600 " width= "1024 " marginheight= "0 " marginwidth= "0 " name= "iframe1 "> </iframe>
<form name= "form ">
<input type= "text " value= " " size= "12 " name= "text12 ">
<div id= "heel "> </div>
<input type= "submit " value= "提交 " size= "12 ">
</form>
iframe页面:
function change1(){
//parent.document.getElementById( "div1 ").innerHTML= "改变了 ";
parent.document.getElementById( "heel ").innerHTML = "改变了 ";
return false;
}
</script>
<form action= "text0.asp " name= "form1 " method= "post ">
<input type= "text " name= "text1 " value= " " onChange= "change1() ">