Posted on 2000-03-25
This may sound like I'm simple, but im going to ask anyway...
I have a form, that I want to put an image into as an image type. On_click it opens a new window that has some text. the new window itself closes on_blur. My problem is that if I dont give the form itself an action, it submits to itself when the user clicks the input image.
<form name = 'myForm'>
<input type = 'image' src = 'fooBar.jpg' onclick = 'window.open('Cart.asp?prodID=1','cart','width=200,height=300')'>
I could probably write a script to do this (havent really thought about it), but I am not building the pages, just fixing them, and I have hundreds of these to change. so for times sake I am really trying to minimize the changes I'm making to each individual page. which is why i am using the form.
basically i just need to know is it possible to have an image input type that doesnt submit the form? and without another anchor on it?