I'm trying to make a simple page that contains a google search form. The results of the search needed to be shown in an iframe that is on the same page. I've managed to write the search form but I can't make the results appear in the iframe. Whenever i click search it just opens the google search page.
What do i miss here?
<html> <head> <title>My Searhpage</title> </head> <body> <h1 align="center">Google Search</h1> <form action="http://www.google.com/search" method="get" enctype="text"> <input type="text" name="q"> <input type="submit" value="Search"> </form> <iframe src="https://www.google.com/search?q=" width="800" height="600"> </body> </html>
Thanks in advance =)