Skip to content

Instantly share code, notes, and snippets.

@ryanhaticus
Created May 22, 2019 13:27
Show Gist options
  • Select an option

  • Save ryanhaticus/d29029900625b4e6cbecce3f7ff95aa5 to your computer and use it in GitHub Desktop.

Select an option

Save ryanhaticus/d29029900625b4e6cbecce3f7ff95aa5 to your computer and use it in GitHub Desktop.
<form id="thwSearchForm" method="post" name="searchform" onsubmit="function x(e) { var link = 'http://www.teenhealthandwellness.com/search?q=' + document.getElementById('q2').value.toString().replace(/\s/g, '+'); var w = window.open(link, '_blank'); w.focus(); return false;};x('e');"><table border="0" cellspacing="0" style="border:1px solid #000000;"><tbody><tr><td bgcolor="#6699CC"><span style="font-size:.2em;"> </span></td></tr><tr><td><img src="http://teenhealthfiles.rosenpub.com/misc/logo_small.gif" width="270" height="36" style="margin:4px;" /></td></tr><tr><td align="center" valign="middle" style="background-color: #dddddd;"><span style="padding:4px;font-family:Arial;font-size:.7em;vertical-align:middle;"><label for="q">Search: </label><input name="q" type="text" id="q2" style="font-size:.9em;border:1px solid #678;vertical-align:middle;" /><input value="GO" type="submit" style="background: #fff url(http://www.teenhealthandwellness.com/images/bg_input-button.jpg) repeat-x 0 0;font-size:.8em;font-weight:bold;color: #efefef;" onclick="this.form.submit();" name="s" /></span></td></tr><tr><td bgcolor="#006699"><span style="font-size:.2em;"> </span></td></tr></tbody></table></form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment