• Post Reply Bookmark Topic Watch Topic
  • New Topic

Prevent new Window in JSP  RSS feed

 
Sudhakar Namasivayam
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do i prevent opening new windows from the current JSP page.
One can use ctrl+N or Shift+click for the link to open in a new window.. At that time the page should say that the page has expired or a error should be displayed.
 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If u search in net or in Google u can find many misc functions like this..
This code is for disabling "F5" key and "ctrl+N"



If u have the code for disabling the refresh through refresh button please post it.

Srini
[ October 13, 2004: Message edited by: srini vasan ]
 
Sudhakar Namasivayam
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you very much... But there is also another way of user opening a new window like File->New Window... Is it possible to stop that also...

Thanks again
 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as i know it's not possible ...
but if u have the code then let me know abt it ..
Srini
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!