Difference between revisions of "Sandbox"
From Organic Design wiki
| Line 1: | Line 1: | ||
<html> | <html> | ||
| + | <SCRIPT TYPE="text/javascript"> | ||
| + | <!-- | ||
| + | function submitenter(myfield,e) | ||
| + | { | ||
| + | var keycode; | ||
| + | if (window.event) keycode = window.event.keyCode; | ||
| + | else if (e) keycode = e.which; | ||
| + | else return true; | ||
| + | |||
| + | if (keycode == 13) | ||
| + | { | ||
| + | myfield.form.submit(); | ||
| + | return false; | ||
| + | } | ||
| + | else | ||
| + | return true; | ||
| + | } | ||
| + | //--> | ||
| + | </SCRIPT> | ||
<form> | <form> | ||
| − | <select> | + | <select onkeypress="return submitenter(this,event)"> |
<option>AAA</option> | <option>AAA</option> | ||
<option>BBB</option> | <option>BBB</option> | ||
Revision as of 23:19, 26 October 2011



