Variable scope
<html> <head> <script language="JavaScript"> <!-- var myVar = "Outside"; function testFunction() { var myVar = "Inside"; alert("this.myVar: " + this.myVar); alert("myVar: " + myVar); } testFunction(); //--> </script> </head> </html>