|
<SCRIPT>
var theURL = prompt("Please
enter an HTTP Site", "http://espn.go.com");
if (theURL) {
if (theURL.substring(0,7)
!= "http://") theURL = "http://" + theURL ;
// using
HTML instead of JavaScript
document.write("<A
HREF=" + theURL + ">"
+ theURL + "</A>");
}
else document.write("You
Canceled the Input");
</SCRIPT> |