这可能是一个非常基础的问题;相信我,在互联网上很难找到这个问题的答案。我在我的服务器(本地Tomcat)中存储了3个HTML页面,我希望通过单击按钮打开这些HTML页面。任何帮助将不胜感激。
这是我的代码,
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Online Student Portal</title>
</head>
<body>
<form action="">
<h2>Select Your Choice..</h2>
<input type="button" value="Add Students">
<input type="button" value="Add Courses">
<input type="button" value="Student Payments">
</form>
</body>
</html>
window.location
是答案。 - Mr. Alien