This is also known as "high-jacking". Spyware has been installed on your computer via social networking or from email link.
This action has allowed spyware to install a java script into your web browser. The spyware then sends a message to your browser to change your user settings. For example change your home page to another web page.