tryit_view.asp@filename=tryjs_functionarg2

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

ASP@FILENAME=TRYJS_FUNCTIONARG2
30
字号
<html> 
<head> 
<script type="text/javascript"> 
function myfunction(txt) 
{ 
alert(txt);
} 
</script> 
</head> 

<body> 
<form> 
<input type="button" 
onclick="myfunction('Good Morning!')" 
value="In the Morning"> 

<input type="button" 
onclick="myfunction('Good Evening!')" 
value="In the Evening"> 
</form> 

<p>
When you click on one of the buttons, a function will be called. The function will alert
the argument that is passed to it.
</p>

</body> 
</html> 

⌨️ 快捷键说明

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