can we restrict the option to open a page(link) in 'new tab' or 'new window' from all browsers using code.
Printable View
can we restrict the option to open a page(link) in 'new tab' or 'new window' from all browsers using code.
I am trying to find a way for that. Is there a way?
Unless you've written the browser yourself then you won't be able to do this in Java.
Thanks.... Is there any alternative way.
No idea, this is a Java forum.
Possibly something in Javascript?
if we click 'new tab', we should b alert with a message .can v develop this using java.
ok thanks.
You're not confusing Java with Javascript are you?
no, not confusing. i am trying to do that n java by any means.
ya ... i got a way but not in JAVA. Thank u all....
Exactly, at least as a software developer. I can imagine situations where a sysadmin would want to lock down a machine (a kiosk situation, for instance) but I don't want to encourage developers to write user-hostile software. I'd sure be annoyed if, for instance, I went to a web site that insisted on opening pages in new windows instead of tabs.
-Gary-
It was in Java Script.
Java and JS are totally two different technologies. Don't mess-up with them
---------ok----------
If you've solve the problem, please mark the thread solved.