Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 727657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:35:33+00:00 2026-05-14T06:35:33+00:00

What I am looking to do is if a user complete a form it

  • 0

What I am looking to do is if a user complete a form it will provide access to a new location.

<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;     
}

I know this part is wrong but I have no idea how to go about doing it. any help would be nice..

 if lastname=""
 if firstname=""
 if email=""
 load('www.google.com');
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T06:35:34+00:00Added an answer on May 14, 2026 at 6:35 am
    if (validateForm(theForm)) window.location = 'http://www.google.com';
    

    Is equivalent to using

    if (validateForm(theForm)) window.location.href = 'http://www.google.com';
    

    Both will work, so choose which one you prefer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking to implement user login onto my site for the first time. I'm
I am trying to detect which web in sharepoint that the user is looking
When looking beyond the RAD (drag-drop and configure) way of building user interfaces that
Looking at the C# project templates in VS2008 and the offerings are WPF User
I'm looking for ideas/elements of a user interface for a device I'm making. Full
I'm looking at building some web user controls with an eye toward re-use, but
Iam looking to write a C# application to alert the user when he gets
I'm looking for a method to obtain the current logged in user's full Active
I am looking for a tool/framework to (automatically) generate a Swing user interface to
I'm looking for a way to allow the user of my iPhone application to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.