Click to See Complete Forum and Search --> : clicked and unclicked images


Robert Neale
August 23rd, 2002, 05:52 AM
I have some vbscript in a html page that is invoked when an image is clicked with the onclick event. What I am finding is that if I click the image once the vbscript is performed, but if I click it again it isn't. Do I have to 'unclick' the image or reset the event ?

Having now got a bit further it appears that......
1. I click the image - it gets a dotted line around it and the vbscript is ececuted.
2. the dotted line is still around the image and no click on it is then registered.
3. If I click elsewhere on the page, the dotted line disappears from the image.
4. I can then click on it and execute the vbscript again!

Can someone explain what is happening and how to get around it?

Zvona
August 23rd, 2002, 12:34 PM
Could you post an URL or part of the code? That'd help us to solve your problem.

AStromer
August 27th, 2002, 06:29 AM
Simply Said = Browser Error
I tested it in IE6 and it works.
What browser do you have ?

Your description of that line let's one think that this is the focus. So move the focus after your first onclick-Event on something else and the problem should be solved

Alexander