Jump to a new location : Location « Window Browser « JavaScript DHTML






Jump to a new location

   

<HTML>
<BODY>
<SCRIPT>
var password = "";
password="your";

if (password != null) {
   location.href= password + ".html";
}

</SCRIPT>
</BODY>
</HTML>

   
    
    
  








Related examples in the same category

1.Location property
2.Methods and Properties of the Location Object
3.A Document with Anchors
4.Extracting the Directory of the Current Document