這是你的作業題吧,這麼簡單的東西,
告訴你,很多方法都可以實現,
先用Onsubmit事件讀取Form的各個Field值,再
document.write或用innerHTML
告訴你,很多方法都可以實現,
先用Onsubmit事件讀取Form的各個Field值,再
document.write或用innerHTML
解决方案 »
- 关于java中流失布局FlawLayout的问题,且看代码:
- JTextField或JLable中如何放置系统时间
- ? + ? = ? 达不到想要的结果,高手帮忙看看,,心痛提示 actionPerformed(ActionEvent e)有问题
- 如何改变鼠标的图形?
- mvc的简单问题
- 求助:怎样从文本文件的指定行中读取字符串?请指教
- 有没有rt.jar包的源码,sun有没有开源
- java中怎么存储和读取CLOB字段?给个例子
- 有关数据流的一个问题
- dll为什么不能用?
- 如何解决这个怪问题啊?这些在JSP页面上显示的时候,可以直接显示中文,但是输出到excel的时候,就直接显示上面这些内容呢?详细见正文
- 输出到文件(输出流问题)
<head>
<script language="javascript">
function a() {
document.form.product1.value = document.form.product.value;
test.style.display = "inline";
}
</script>
</head><body>
<form name="form" id="form">
<table>
<tr>
<td>产品:</td>
<td><input type=text name="product" id="product"></td>
</tr><tr>
<td><button onclick="javascript:a();">提交</button></td>
</tr>
</table><table>
<tr>
<td id=test style="display:none">提交信息:产品:<input type="text" style="border-style: none" id="product1" name="product1"></td>
</tr>
</table>
</form>
</body>
</html>
<head>
<script language="javascript">
function a() {
document.form.product1.value = document.form.product.value+"、"+document.form.price.value+"、"+document.form.area.value+"、"+document.form.company.value;
test.style.display = "inline";
}
</script>
</head><body>
<form name="form" id="form">
<table>
<tr>
<td>产品:</td>
<td><input type=text name="product" id="product"></td>
</tr><tr>
<td>价格:</td>
<td><input type=text name="price" id="price"></td>
</tr><tr>
<td>出产地:</td>
<td><input type=text name="area" id="area"></td>
</tr><tr>
<td>生产商:</td>
<td><input type=text name="company" id="company"></td>
</tr><tr>
<td><button onclick="javascript:a();">提交</button></td>
</tr>
</table><table>
<tr>
<td id=test style="display:none">提交信息:<input type="text" style="border-style: none" id="product1" name="product1"></td>
</tr>
</table>
</form>
</body>
</html>