How to Embed Google Search

I have always wondered how to embed Google on a webpage. Is it possible to put it in an iframe? I know that some websites use Google CSE, but I want the real Google. If so, how can I do this?


You can embed this URL (aka in an iframe without fail. The ?igu=1 is what makes it work. I found this answer from, which uses an iframe to house an experimental Google search website.

<iframe src="" width="640" height="480" frameborder="0">Your browser does not support <code>iframe</code>s. Please consider using a <a href="">modern</a> browser.</iframe>

If you don't want the google logo and just the search box, you can use this:

<form target="_self" id="google" method="get" action="" target="main" onsubmit=";">
    <input name="q" id="google" placeholder="Google Search" size="40" maxlength="2000" value="" type="text" autofocus></input>

You might want to check this-

Need Your Help

Display ASP.NET Control on Event javascript datepicker

I'm looking to create a custom date picker with code examples from several sources.

Convert a Diagonal Sparse Matrix in a 1-D vector

python arrays numpy scipy sparse-matrix

I have a big n-square diagonal matrix, in the scipy's sparse DIA format