实例首页
自学教程
IT工具箱
源代码
下载代码
上下布局
点击运行 >
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>html command 实例 - 自学教程(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>只有 IE 9 支持 command 标签。</p> </body> </html>
运行结果: