It can be use for convert someone's web page into different page without redirecting.
Some hackers used this to deface my friend's web site.
Let's say you have a web page as follow.
<html><head></head><body><h1>Test</h1></body></html>
<html><head></head><body><h1>Test</h1></body>
</html>