Re: Right click on text vs. right click on hyperlink



In the click event sub you can use something
like the following:

sTag = window.event.srcElement.tagName

Select Case sTag

Case "A" 'link was clicked.

Case "IMG"
if window.event.srcElement.parentElement.tagName = "A" then
'-- it's an image link
end if

Case Else
'-- do code for non-tag.

End Select

--
--
Larry <larry328NOSPAM@xxxxxxx> wrote in message
news:#LA4Y#OjFHA.3936@xxxxxxxxxxxxxxxxxxxxxxx
> Is there a way that Windows script can tell whether the mouse has right
> clicked on the text area of a web page, or whether it has right clicked
> on a hyperlink on the webpage? I have a Windows script in an htm file
> that I want to behavior differently depending on whether the first
> condition or the second condition exists .
>
> Thanks,
> Larry
>
>
>
>


.


Loading