tryit_view.asp@filename=tryjs_function2

来自「W3Schools tutorial..web designing」· ASP@FILENAME=TRYJS_FUNCTION2 代码 · 共 25 行

ASP@FILENAME=TRYJS_FUNCTION2
25
字号
<html>
<head>

<script type="text/javascript">
function myfunction(txt)
{
alert(txt);
}
</script>

</head>
<body>

<form>
<input type="button" 
onclick="myfunction('Hello')"
value="Call function">
</form>

<p>By pressing the button, a function with an argument will be called. The function will alert
this argument.</p>

</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?