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 8734979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:57:08+00:00 2026-06-13T09:57:08+00:00

Check out this link: http://humorjots.com/Barry/BarryWashington.htm The part in the script that says: if(emailInput.value !=

  • 0

Check out this link:
http://humorjots.com/Barry/BarryWashington.htm

The part in the script that says:

if(emailInput.value != '' && zipInput.value != ''){
    window.location = "sea206.html";
}

for some reason doesn’t work in loading sea206.html. However when you go to type window.location = 'sea206.html' in the developers console, it loads the page. I don’t understand why it won’t work when the button is clicked.
The if statement does work. If an alert is inserted within the statement, it runs run when the button is clicked.

  • 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-06-13T09:57:09+00:00Added an answer on June 13, 2026 at 9:57 am

    What happened on your code was it performs the default function of button on which will automatically submits the form.

    Solution to this is that you must add return false on your submitButton.onclick function so that it will not submit the form and redirects to your desired location

    if( emailInput.value != '' && zipInput.value != '')
    {
        window.location = "/Barry/sea206.html";
        return false;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If you check out this link (http://noahsdad.com/state-fair-texas-2011/) you'll notice that scrolling side bar to
for better understanding check out this link first: http://sxsw.usehipster.com/questions/where-are-the-best-breakfast-tacos-in-austin as you can see there,
I checked out this link: http://msdn.microsoft.com/en-us/library/ff769510(v=VS.92).aspx But when I run the default windows phone
Please check out this page: http://onomadesign.com/wordpress/identity-design/hans-appenzeller/ The thumbnails on the right, link to different
Please check out this link: http://davidwalsh.name/dw-content/textboxlist.php As you can see its a textbox list
Please check out this link quickly: http://jsfiddle.net/8grSk/ As you can see the text as
Check out this web page: http://dev.driz.co.uk/attachment.html dead link As you will see you get
Check this link! I am having the hardest time trying to figure out why
Check out this jsbin . I have a form with a custom button that
Check out this demo by FaTaL. It is explained in his blog that he

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.