Hi sitepointers,

i have a current script that takes a value on click of a hyperlink and uses it to change an image.

PHP Code:
<script language='javascript'>
changeImage(URL) {
image document.getElementById('change');
image.src URL;

PHP Code:
onclick='changeImage("/image/image.jpg"); return false;

which changes :

<img id='
change' src='/image/image.jpg'> 
can somone change the code so that i can have an input box, which when the contents of the input box changes (i.e put an image url in there) then the image changes automatically?

any help would be great...im new to js and need help..

Thank You