以下のソースを利用してホームページにテキストボックスに入力した値を取得し、表示させる機能を付けたいのですが、表示する際のフォントの指定の仕方がわかりません。
表示する際のフォントの指定の仕方についてアドバイスをお願いします。
よろしくお願いします。
========ソース========
<html> <head> <META http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> <META http-equiv="Content-Style-Type" content="text/css"> <title></title> <script type="text/javascript" language="javascript"> function onButtonClick() { target = document.getElementById("output"); target.innerText = document.forms.form1.textBox1.value; } </script> </head> <body> <form name="form1" action=""> <input name="textBox1" type="text" value="" /> <input type="button" value="OK!" onclick="onButtonClick();" /> </form> <hr /> <div id="output"></div> </body> </html>回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。