Difference between revisions of "Command Element"
Jump to navigation
Jump to search
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
<head> | <head> | ||
− | <script> | + | <script type="text/javascript"> |
− | function | + | function openBox() { |
alert('opened'); | alert('opened'); | ||
} | } | ||
− | function | + | function closeBox() { |
alert('closed'); | alert('closed'); | ||
} | } | ||
</script> | </script> | ||
</head> | </head> | ||
+ | <body> | ||
Below is a command menu bar. | 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=" | + | <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.