作者othree (OOO)
看板Web_Design
标题Re: [问题] Javascript无须重载页面之资料更新
时间Tue Jul 10 21:37:06 2007
抱歉删光光
我不能很肯定你的要求
你看看吧
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd">
<script type="text/javascript">
function update(text, tar) {
document.getElementById(tar).value = text;
}
</script>
<form><p>
<input type="text" id="text-1" onkeyup="update(this.value, 'text-2');">
<br>
<input type="text" id="text-2" readonly>
</p></form>
--
FrontPage is not a visual web editor. It is an IE page editor.
From "designing with web standards" by jeffery zeldman
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.118.5.39
1F:推 midio:可以请教一下这种语法通常都是用在何处何时?有具体实例吗? 07/15 02:07