• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 357
  • Last Modified:

HTA problem with context menus

I have a working .HTA application that I am very happy with, apart from one small problem: the "back" option is disabled in the context menu (right-click anywhere on the page).

Can anyone tell me how to either enable to the "back" option on the default context menu within an HTA application, or how to extend the default context menu using JavaScript so that I can add my own "back" option?

Many thanks
- Graeme
0
gmacfarlane
Asked:
gmacfarlane
1 Solution
 
COBOLdinosaurCommented:
See if you can use one of these.  Just and the back and for the function use history.back();

http://www.dynamicdrive.com/dynamicindex1/contextmenu.htm
http://www.dynamicdrive.com/dynamicindex1/contextmenu2.htm


However I'm not sure an HTA, can actually go back.  it runs as an application, so whether you can come back to history from application space would be questionable.

Cd&
0
 
gmacfarlaneAuthor Commented:
Ah. You make a good point. "history.back();" does not work for HTAs anyway. I guess that is the reason why it is disabled on the default context menu!  Many thanks all the same.
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now