Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Triggering the Context Menu

Status
Not open for further replies.

Supra

Programmer
Dec 6, 2000
422
US
What I want to do is open the DEFAULT context menu in IE6 through code. I'd like to be able to press the space bar and have the context menu open, rather than right-click. I've tried searching in the forums for this but the results were inconclusive. If anyone can offer a working solution I'd very much appreciate it. Any help I find useful in any way will be marked as a helpful post. Thanks!
 
Not possible. The context menu, like all the other menus is part of the browser and not exposed to the Document Object Model. You could however, build a menu using DHTML that mimicked the context menu. That way you could build even more functionality into the menu.

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
Yeah I'm aware of the DHTML menus, but that's not what I'm going for. I just figured if you can use ShowBrowserUI to open the Favorites dialog, why not have access to the context menu as well? Thanks anyway dwarf
 
ShowBrowserUI only works for dialog boxes, not menus.

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top