网页客户端默认的脚本语言是?
来源:百度知道 编辑:UC知道 时间:2024/05/24 13:13:21
一下是在ASP页面中的一段代码,服务器端脚本语言设置的是vbscript
<input name="edit" type="button" onclick=" window.open('hzdw_edit.asp')" value="编辑" />
为什么onclick事件中没有写用何语言,程序还是执行?
<input name="edit" type="button" onclick=" javascript:window.open('hzdw_edit.asp','_self')" value="编辑" />这样是等效的。
<input name="edit" type="button" onclick=" window.open('hzdw_edit.asp')" value="编辑" />
为什么onclick事件中没有写用何语言,程序还是执行?
<input name="edit" type="button" onclick=" javascript:window.open('hzdw_edit.asp','_self')" value="编辑" />这样是等效的。
服务器端脚本语言设置的是vbscript是指的ASP。
<input name="edit" type="button" onclick=" window.open('hzdw_edit.asp')" value="编辑" />
点击按钮的时候他会执行window.open和javascript:window.open是一样的。
本身onclick变是执行JS
javascript:
默认是javascript
默认是用JavaScript来执行的