Using image input type with javascript?
Using image input type with javascript?
(OP)
I am using an input form type of "IMAGE" so that I can use images as
buttons. I have placed the onClick specification in the code and it
works just fine. The problem I am running into is that the HREF tag
must be specified which then loads/re-loads the frame with the
specified html file. How can I use the IMAGE without re-loading the
frame each time the button is pressed? What seems to happen is that
the variables, windows defined etc. become undefined when the page
is reloaded.
Thanks in advance
buttons. I have placed the onClick specification in the code and it
works just fine. The problem I am running into is that the HREF tag
must be specified which then loads/re-loads the frame with the
specified html file. How can I use the IMAGE without re-loading the
frame each time the button is pressed? What seems to happen is that
the variables, windows defined etc. become undefined when the page
is reloaded.
Thanks in advance
RE: Using image input type with javascript?
tag.
<.... HREF="#" .....> keeps the current page loaded.
RE: Using image input type with javascript?
Doug
RE: Using image input type with javascript?
This will keep forms from submitting, pages from re-loading, references from being followed, status bar messages from being displayed, etc. Really a useful little line!