/p>
"http://www.w3.org/TR/html4/loose.dtd">
JavaScript获取文本框/编辑框/隐藏域的值_网页代码站(www.webdm.cn)function Mycheck(){
var checkstr="获取内容如下:\n";
if (document.form1.文章作者.value != ""){
checkstr+="作者名称:"+document.form1.文章作者.value+"\n";
}
if (document.form1.文章主题.value != ""){
checkstr+="文章主题:"+document.form1.文章主题.value+"\n";
}
if (document.form1.文章内容.value != ""){
checkstr+="文章内容:"+document.form1.文章内容.value+"\n";
}
if (document.form1.隐藏域.value != ""){
checkstr+=document.form1.隐藏域.value;
}
if (checkstr != ""){
alert(checkstr);
return false;
}
else return
return true;
}
作者名称: | |
文章主题: | |
文章内容: | |
网页代码站 - 最专业的网页代码下载网站 - 致力为中国站长提供有质量的网页代码!