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