JavaScript@Workshop 
HOME > JavaScript サンプル集 > ダイアログボックスを表示する
ダイアログボックスを表示する

サンプルソース

<html>
<body>

<input type="text" id=txt1 value="テキスト">
<input type="button" value="ボタン" onclick="alert(document.all.txt1.value)">

</body>
</html>

解説

alert・・・任意の文字を指定し、ダイアログボックスを表示する

サンプル

関連する内容



スポンサードリンク



Copyright (C) 2006-2008 JavaScript@Workshop All rights reserved.