实例首页
自学教程
IT工具箱
源代码
下载代码
上下布局
点击运行 >
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>html command type 实例 - 自学教程(runoops.com)</title> <script> function save() { alert("Some javaScript...."); } </script> </head> <body> <menu> <command type="command" label="Save" onclick="save()">Save</command> </menu> <p><b>注意:</b>Internet Explorer 9 支持 type 属性(只有 IE9 支持,之前或者之后的版本都不支持)。但是,它只支持 "command" 类型。</p> </body> </html>
运行结果: