[英]send the parameter javascript in html
我想将参数“ Min”发送到形式为“ time”的文本框。 但我不知道该怎么办.....
<html>
<script language="javascript">
tid = 0;
sumcost=400;
todaycost=50;
var Min=(sumcost-todaycost);
alert(Min);
</script>
<form name="time">
<div align="center">
<script language="JavaScript">
document.write('<input style="FONT-WEIGHT: bold; bo ?rder: none; color:#CC0000 ; FONT-SIZE: 14pt; TEXT-ALIGN: center;" name=result size=30 value="Minus1()">');
</script>
</div>
</form>
</html>
document.write('<input style="FONT-WEIGHT: bold; bo ?rder: none; color:#CC0000 ; FONT-SIZE: 14pt; TEXT-ALIGN: center;" name=result size=30 value="'+Min+'">');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.