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



Also, you refer to a click event sub. I know click events from forms in
Word VBA. But what does that mean here? Is it a file separate from the
source code of the htm file?



"Larry" <larry328NOSPAM@xxxxxxx> wrote in message
news:e86HffUjFHA.2904@xxxxxxxxxxxxxxxxxxxxxxx
>
> I'm happy to hear that this is possible to do. But is this code
> sufficient to set it up? What I mean is, does the script recognize
"A"
> as meaning that a hyperlink has been clicked on and "IMG" as meaning
> that an image has been clicked on?
>
> Also, what if I don't right click on the page, but simply press the
> application key on my keyboard which makes the shortcut menu appear?
If
> the focus is on the page would opening the menu via the application
key
> have the same effect as right clicking on the page? In other words,
> would the code read it as "Case Else," neither a hyperlink, nor an
> image, but just plain text?
>
> Thanks.
>
>
>
>
> "mayayana" <mayaXXyana1a@xxxxxxxxxxxxxxxx> wrote in message
> news:7FsDe.14331$aY6.11404@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > 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
> > >
> > >
> > >
> > >
> >
> >
>
>


.