I have a little problem with this code :
What is supposed to do is to navigate to the address given in the text input. The problem is that if I use the button to change the page it works, but if I press ENTER after finishing writing the url it doesn't work.It shows the alert with the url that I've entered but the page doesn't change . Furthermore it always changes the page to the initial one (google.com) .
alert("The input is: " + GET_URL.url.value);
DISPLAY.src = GET_URL.url.value
Enter address :
<input type="text" name="url" onChange="O()" /><br />
<input type="button" value="Change address ?" onclick="O()" /><br />
<iframe id="DISPLAY" src ="http://www.google.com/" width="400" height="400" scrolling = "yes">
<p>Your browser does not support iframes.</p>
What may be the problem since onChange and onclick do the same thing here ?