Skip to Content
0
May 02, 2014 at 04:39 AM

Disabling opening of multiple windows and tabs

386 Views

HI experts,

I have another requirement that i have to restrict user to single window browser, if he opens a new window , automatic logoff should happen and his parent window should also logoff automatically invalidating the session.

In mast head ,

we can write java script code to find if the openend window is parent window or child window.

but im using this code which is not working...

if(window.top!==window.self)

{

logoff();

}

Regards

Govardan Raj S