Send enter from javascript
===

***How to send enter from javascript to site?***

What I real need is to send text to site like filehippo.com in search box, and press enter to search for those text.  
So piece of code from site is:

    <div id="searchbox">
	<form name="f" action="/search">
	<input style="color: #999" type="text" id="q" name="q" maxlength="150" value="Search..." onfocus="javascript:clearInputValue('q', 'Search...')" onblur="javascript:setDefaultIfEmpty('q', 'Search...')">
	<input type="submit" id="search-submit" value="GO" onclick="javascript:submitQuery('q', 'Search...')">
	</form></div>

And my simple code look like this:

    javascript: document.getElementById('q').focus();document.getElementById('q').value='Winrar';document.getElementById('f').item(0).click();

And those script just put focus on search box and send text to them, but I need also to do automatically search (send enter), how to do that?

    document.getElementById('f').item(0).click(); -> dont work


What I need is to simulate click of mouse, by enter, cause can't send click to element that work properly.

Is it possible to send enter with text?