<script type="text/javascript"> function wopen(word) { window.open('http://www.google.com/#hl=zh-TW&source=hp&q=' + word, 'Google'); } </script> <input class="submit" onclick="wopen(this.form.text.value);return true;" type="submit" value="Google搜尋"> <input id="text" name="keyword" type="text">