Mega Code Archive

 
Categories / JavaScript DHTML / Window Browser
 

String Objects 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 rntsoft today?"))       window.location = "http://www.rntsoft.com";  </SCRIPT> </BODY> </HTML>