View Source
Go Back to /jang/books/webprog/03jscript/example/prompt1.asp
Go Back to WWW sandbox
<html>
<body>

<h2 align=center> 輸入視窗 (Prompt Window) </h2>
<hr>

<SCRIPT>
function link2course() {
      course = prompt("請輸入課程編號:(cs3431, cs3331, cs3334, or cs5652)", "cs3431");
      if (course != null)
           location.href="http://neural.cs.nthu.edu.tw/jang/courses/" + course;
}
</SCRIPT>


<a href="javascript:link2course()">張老師的課程</a>

<hr>
<!--#include file="foot.inc"-->

</body>
</html>