我期待的是如果用戶填寫表單,它將提供對新位置的訪問。JavaScript加載新頁面問題
<script language="JavaScript" type="text/javascript">
<!--
function validateForm(theForm) {
var firstname = theForm.firstname.value;
var lastname = theForm.lastname.value;
var email = theForm.email.value;
if (firstname == "") {
alert("Please fill in your First Name.");
theForm.firstname.focus();
return false;
}
if (lastname == "") {
alert("Please fill in your Last Name.");
theForm.lastname.focus();
return false;
}
if (email == "") {
alert("Please fill in your email address.");
theForm.email.focus();
return false;
}
return true;
}
我知道這部分是錯誤的,但我不知道如何去做。任何幫助將是不錯..
if lastname=""
if firstname=""
if email=""
load('www.google.com');
我現在的用戶需要鍵入某種放置在輸入框中數據的方式....或者什麼關係呢? – Michael 2010-04-18 06:12:26
好的,我會更改我的代碼以包含 – 2010-04-18 06:13:12
謝謝...我欣賞幫助。 – Michael 2010-04-18 06:48:44