I have create a HTML page with some JavaScript code. Here is the code
<script type="text/javascript">
function doIt(){
window.location = document.getElementById('url').value;
}
</script>
<input type="text" id="url" />
I want that when some one press the enter after type the URL. The page redirect to the given URL automatically. How i can do this? Please suggest me some code