September 17, 201312 yr Hey, I'm using this script to search my website. At the moment all the results open in a window. How do I get it to appear as a list on the same page within the website? What's the easiest and quickest way of achieving this? Any help is appreciated!! Thanks. <script type="text/javascript"> // Google Internal Site Search script- By JavaScriptKit.com (http://www.javascriptkit.com)// For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/// This notice must stay intact for use //Enter domain of site to search.var domainroot="" function Gsitesearch(curobj){curobj.q.value="site:"+domainroot+" "+curobj.qfront.value} </script> <form id="form1" name="form1" method="get" action="http://www.google.com/search" target="_blank" onsubmit= "Gsitesearch(this)"> <input name="q" type="hidden" /> <input name="qfront" type="text" style="width: 160px" /> <input type="submit" value="Search" /> </form>
September 17, 201312 yr The target should not be blank for open search on same page. remove the target blank form action.
Create an account or sign in to comment