I am developing a on line assessment test site and want to provide security, if user minimizes the browser or open a new tab an continuous alert have to come. Please help out this.
Thank you in advance...strong text
I am developing a on line assessment test site and want to provide security, if user minimizes the browser or open a new tab an continuous alert have to come. Please help out this.
Thank you in advance...strong text
You can do this through Javascript. Please take a look at this API: http://www.w3.org/TR/page-visibility/ Someone asked a similar question:
Is there a way to detect if a browser window is not currently active?
To know if a new window/tab is opened,
use onblur for the top most frame. [window.top]
window.top.onblur = function() { alert() }
for resize, window.onresize should do the job.