Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 804 Bytes
Form Submit and Forward to External Site
Created by Jonathan LeBlanc on 06/08/09.
Copyright (c) 2009 Yahoo! Inc. All rights reserved.
The copyrights embodied in the content of this file are licensed under the BSD (revised) open source license.
<!-- Form to add search value - link will update to pass search as GET param -->
<form name="myForm">
<input type="text" id="search" name="search" onKeyUp="alterLink()">
<a href="" id="link">Run Request</a>
<script type="text/javascript">
//on search input key up, change the href to pass the new value on the query string
function alterLink(){
document.getElementById('link').href = "" + document.getElementById('search').value;