469,270 Members | 1,146 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

Catch mouse down on frame/frameset

Jun
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
Jul 20 '05 #1
3 2875
"Jun" <ju*********@hotmail.com> wrote in message
news:de**************************@posting.google.c om...
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?


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.
Jul 20 '05 #2
Jun
"Richard Cornford" <Ri*****@litotes.demon.co.uk> wrote in message news:<bu*******************@news.demon.co.uk>...
"Jun" <ju*********@hotmail.com> wrote in message
news:de**************************@posting.google.c om...
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?


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.


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

thanks
Jul 20 '05 #3
Jun wrote:
How can I catch onMouseDown event on a frame/frameset?
You can't.
When I right mouse click at the border area of a frame, I can still
get the Window's standard popup menu.
Yep, thats the way it works.
How can I catch the mouse click to pop up my own menu when use click at the
border?


You can't.

Emulate your own borders......

--
Randy

Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Larry R Harrison Jr | last post: by
5 posts views Thread by Frame | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.