看板 Web_Design 關於我們 聯絡資訊
※ [本文轉錄自 Ajax 看板] 作者: CoMix (CoMix) 看板: Ajax 標題: [問題] javascript 與 ASP.NET 時間: Mon Oct 20 22:28:14 2008 我想問的問題 不太會表達 我用簡單的程式碼來說我要的問題好了 ^^" <script runat="server"> </script> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Test</title> <script type="text/javascript"> function Add(){ var txt = document.getElementById("textA").value; document.write(txt); } </script> </head> <body> <form id="form1" runat="server"> <div> </div> </form> <input type="text" size="10" id="textA" /> <input type="button" size="25" id="Check" value="Add" onclick="Add()" /> </body> </html> ------------------------------------------------------------------------------ 假如 我想要在 <script runat="server"> </script> 中 用一個 label 把javascript的txt印出來 要怎麼做? 雖然說網路上有很多說用 hidden?? 不過 真的不太懂 實作起來是怎麼樣的寫法 ~"~ 麻煩高手幫一下 @_@" -- 看著遠方香草天空想妳的笑容 走在熱鬧的午後街道品嚐著寂寞 ∮CoMix -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.173.72.96 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.173.72.96
ourear:innerHTML 10/21 11:58