Difference between revisions of "Command Element"
Jump to navigation
Jump to search
(Created page with "<html> <menu> <command type="command" label="Open" onclick="open()">Open</command> </menu> </html> Category:Elements") |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
+ | <head> | ||
+ | <script type="text/javascript"> | ||
+ | function openBox() { | ||
+ | alert('opened'); | ||
+ | } | ||
+ | function closeBox() { | ||
+ | alert('closed'); | ||
+ | } | ||
+ | </script> | ||
+ | </head> | ||
+ | <body> | ||
+ | Below is a command menu bar. | ||
<menu> | <menu> | ||
− | <command type="command" label="Open" onclick=" | + | <command type="command" label="Open" onclick="openBox();">Open</command> |
+ | <command type="command" label="Close" onclick="closeBox();">Close</command> | ||
</menu> | </menu> | ||
+ | <button onclick="openBox();"> test </button> | ||
+ | </body> | ||
</html> | </html> | ||
[[Category:Elements]] | [[Category:Elements]] |
Latest revision as of 15:21, 27 March 2014
Below is a command menu bar.