4

I have Menu Control on my page. I want to prevent user from opening menu link

in "New Tab" or "Open In New Window".

How I can Do that ?

1
  • 1
    If I want to open a page in a separate tab or window, it better open there. Why would you want to prevent that?
    – Kevin
    Nov 29, 2011 at 21:43

2 Answers 2

1

As far as I know this isn't possible. A possible solution is to disable the context-menu (the right-click menu):

<body oncontextmenu="return false;">

But this does not stop the user to duplicate the tab or something like that and open the new menu there.

0

I think you can't. You can solve it by extensions, if this is an intranet software.

1
  • I got the solution for this I used <body oncontextmenu="return false;"> Nov 30, 2011 at 4:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.