Example of Browser Hijacking

Home ] Up ] An HTML "Login" Page ] A Simple Web Page ] Simple Web Page with Image ] Page Containing a Web Bug ] Resource Exhaustion Attempt ] [ Example of Browser Hijacking ]

 

Example of Browser Hijacking

This page contains a JavaScript script which prevents you from leaving the page.

function trap()
{
  var really = confirm("I have you trapped!\nDo you really want to exit this page?")
  if (!really)
  {
    window.open('Trap.htm', '_self');
  }
}

It will prompt you to see whether you really want to leave the page.  

An evil implementation wouldn't ask you.

 

This page was last changed on January 19, 2005