String Object's Length, Document.Location Properties, confirm and input dialog : Dialog : Window Browser JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Window Browser » Dialog »

 

String Object's Length, Document.Location Properties, confirm and input dialog



<HTML>
<HEAD>
<TITLE>Properties</TITLE>
</HEAD>
<BODY>
<SCRIPT
   var theString = new String()
   theString = prompt("Enter a string: ","")
   document.write('The string "' + theString +  '" is ' + theString.length + ' characters long.'); 
   if (window.confirm("Do you want to go to navioo today?")) 
     window.location = "http://www.navioo.com"
</SCRIPT>
</BODY>
</HTML>


           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Window Browser
» Dialog