Re: Right click on text vs. right click on hyperlink
- From: "mayayana" <mayaXXyana1a@xxxxxxxxxxxxxxxx>
- Date: Wed, 20 Jul 2005 13:50:59 GMT
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
>
>
>
>
.
- Follow-Ups:
- References:
- Right click on text vs. right click on hyperlink
- From: Larry
- Right click on text vs. right click on hyperlink
- Prev by Date: Re: Trying to process a large AD group
- Next by Date: Using Replace with wildcard
- Previous by thread: Right click on text vs. right click on hyperlink
- Next by thread: Re: Right click on text vs. right click on hyperlink
- Index(es):
Loading