473,396 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 3113
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Fre | last post by:
Hi, i made script with an alert window that should show me the location of the page in frame CONTENT (..../artikels.aspx). But it don't work, i got an error: 'top.frames.1.frames' is empty or nog...
4
by: Larry R Harrison Jr | last post by:
I have them working now, courtesy of the link given in the prior thread--the HVMenu over at Dynamic Drive myself. http://www.dynamicdrive.com I have them working as side-bar menus, not...
1
by: ids | last post by:
I have my own website and i want to use a mouse effect. My problem is that i use frames and when i put the javascript in the index.html like this: <html> <head> <meta name="keywords"...
7
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three...
5
by: Frame | last post by:
I'm looking for tutorials or articles considering HTML Frames and how to handle them with Javascript. E.g. samples how Frames can exchange information, can a Frame instruct other Frame to update...
11
by: Rob | last post by:
I know, I know, don't use frames. Well, I'm stuck with these frames and I'm trying to add functionality without a complete redsign. You can look at this as a nostalgic journey. Anyway, I've got...
1
by: sayid | last post by:
Hello, I have a problem when altering a DIV-element from another frame. The frameset looks like this: <frameset rows=0,0,* border=0> <frame name=header src=/header.htm scrolling=no...
4
by: maminx | last post by:
Hello..i have problem, hope someone can help me..i have this frameset below : <FRAMESET ROWS="55%" COLS="37%,63%"> <FRAME NAME="runningTrade" SRC="http://runningtrade.com" scrolling="no"> ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.