I'm stumped with this at the moment. I have a small pop up login window with username and password fields. Instead of a submit button I have an image (a gif with "enter"). When the user clicks on the image I want the pop up window to close and the appropriate page to open in the parent window. But so far I can only get this to work if the input type is a button and not an image. Is it the case that this won't work with input type="image"? Or is there something wrong with my code? What I have so far is
<input type="image" border="0" src="../images/enter.gif" name="submit" onClick="window.opener.location.href='../client_area/movie.php';window.close();">
But it's not working. Any ideas on what's wrong? Thanks...