Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //FIND
- <form name="searchForm" id="searchForm" onsubmit="onSearchSubmit(event)">
- <div id="searchLogoContainer"><img id="searchEngineLogo"/></div>
- <input type="text" name="q" value="" id="searchText" maxlength="256"
- autofocus="autofocus"/>
- <input id="searchSubmit" type="submit" value="&abouthome.searchEngineButton.label;"/>
- </form>
- //CHANGE IT TO:
- <form name="searchForm" id="searchForm" method="get" action="http://google.com/search">
- <div id="searchLogoContainer"><img id="searchEngineLogo"/></div>
- <input type="text" name="q" value="" id="searchText" maxlength="256"
- autofocus="autofocus"/>
- <input id="searchSubmit" type="submit" value="&abouthome.searchEngineButton.label;"/>
- </form>
- /*WHAT THIS DOES: It changes the form submission from the built in javascript (which is what breaks) into a plain html form that defaults to google (but can be changed).*/
- /*for example, to set it to yahoo, change the name="q" to name="p" and action to "http://us.search.yahoo.com/search"*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement