|
<SCRIPT>
var theURL = prompt("Please
enter an HTTP Site", "http://espn.go.com");
if (theURL) { // if
the user didn't "cancel out" then
if (theURL.substring(0,7)
!= "http://") theURL = "http://" + theURL;
document.write("<CENTER>Go
to " + "This is the URL link".link(theURL)
+ "</CENTER>");
} // else the user "canceled
out"
else document.write("<CENTER><B>You
Canceled the Input</B></CENTER>");
</SCRIPT> |