Catch mouse down on frame/frameset

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jun

    Catch mouse down on frame/frameset

    How can I catch onMouseDown event on a frame/frameset?

    When I right mouse click at the border area of a frame, I can still
    get the Window's standard popup menu.

    How can I catch the mouse click to pop up my own menu when use click at the
    border?

    thanks
  • Richard Cornford

    #2
    Re: Catch mouse down on frame/frameset

    "Jun" <junchien888@ho tmail.com> wrote in message
    news:de615625.0 401150128.54de2 433@posting.goo gle.com...[color=blue]
    >How can I catch onMouseDown event on a frame/frameset?
    >
    >When I right mouse click at the border area of a frame, I
    >can still get the Window's standard popup menu.
    >
    >How can I catch the mouse click to pop up my own menu when use
    >click at the border?[/color]

    You don't think that clicking on the border might be a reasonable
    indicator that the user does not want to see your menu (given the effort
    required lining the moue up)?

    Or is the plan to deny the user access to the standard context menu via
    the mouse? In which case, don't bother, as that achieves nothing useful.

    The behaviour you are describing is not common to all browsers but is a
    feature of IE and you are stuck with it (at least in a normal context)
    because the script's knowledge of the mouse is restricted to mouse
    activity within the display area of the document, and that ends at the
    borders.

    Richard.


    Comment

    • Jun

      #3
      Re: Catch mouse down on frame/frameset

      "Richard Cornford" <Richard@litote s.demon.co.uk> wrote in message news:<bu5s4m$b4 t$1$8302bc10@ne ws.demon.co.uk> ...[color=blue]
      > "Jun" <junchien888@ho tmail.com> wrote in message
      > news:de615625.0 401150128.54de2 433@posting.goo gle.com...[color=green]
      > >How can I catch onMouseDown event on a frame/frameset?
      > >
      > >When I right mouse click at the border area of a frame, I
      > >can still get the Window's standard popup menu.
      > >
      > >How can I catch the mouse click to pop up my own menu when use
      > >click at the border?[/color]
      >
      > You don't think that clicking on the border might be a reasonable
      > indicator that the user does not want to see your menu (given the effort
      > required lining the moue up)?
      >
      > Or is the plan to deny the user access to the standard context menu via
      > the mouse? In which case, don't bother, as that achieves nothing useful.
      >
      > The behaviour you are describing is not common to all browsers but is a
      > feature of IE and you are stuck with it (at least in a normal context)
      > because the script's knowledge of the mouse is restricted to mouse
      > activity within the display area of the document, and that ends at the
      > borders.
      >
      > Richard.[/color]

      I don't get your point: I post to find a "way" not a lesson which I
      can read from MS menu.

      thanks

      Comment

      • Randy Webb

        #4
        Re: Catch mouse down on frame/frameset

        Jun wrote:
        [color=blue]
        > How can I catch onMouseDown event on a frame/frameset?[/color]

        You can't.
        [color=blue]
        > When I right mouse click at the border area of a frame, I can still
        > get the Window's standard popup menu.[/color]

        Yep, thats the way it works.
        [color=blue]
        > How can I catch the mouse click to pop up my own menu when use click at the
        > border?[/color]

        You can't.

        Emulate your own borders......

        --
        Randy

        Comment

        Working...