Catch mouse down on frame/frameset

J

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
 
R

Richard Cornford

Jun said:
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.
 
J

Jun

Richard Cornford said:
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
 
R

Randy Webb

Jun said:
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......
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top