i want to create a button on a popup page that redirect to google search page when clicked
so i used window.open
this is the html

```
<li> 
    <input type="image" src="http://www.google.com/s2/favicons?domain=www.google.com" onClick="google()">
</li>

```

and the javascript 

```
function google(){ 
    window.open("http://www.google.com/search?q="+document.search.query.value);
}

```

this works fine when i preview the code in chrome window but in the extension popup page the button doesn't do anything, why?