function cancel() {
var change=confirm("是否取消设置?");
if(change)
{
txt.style.color="black";
txt.style.width="600px";
txt.style.height="400px";
} }//定义"取消设置"的函数
相应按钮内添加 onclick="cancel()"
function resetting()
{
var v5;
v5=confirm("否取消设置?");
if(v5)
{
v5.style.color="blue";
v5.style.backgroundColor="red";
v5.style.width="400px";
v5.style.height="600px";
v5.style.display="none";
v5.style.display="block";
}
}