Following is a basic code. try it
Go to google or yahoo.
The search term is 'hack' and search for 'images'.
After the page fully loaded clear the URL bar and replace with following code
Fun Begins !
Works with any broser and any site.
Learn more about javascript Injection.like edit cookies and Login forms.