www.webdeveloper.com
Results 1 to 2 of 2

Thread: Move to next page after validation

  1. #1
    Join Date
    Jan 2013
    Posts
    17

    Move to next page after validation

    Hello.

    I have coded an submit button to validate my form, however when the you submit the form it refreshes page, I would like it to instead move to another page.

    How would I code this in javascript?

  2. #2
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,413
    Show a simplified version of what doesn't work for you.
    Does not need to be the whole script, just a sample of what seems to be the problem in your code.

    What does your <form> tag look like?
    May be as simple as
    <form id="myForm" action="???" method="post" onsubmit="return validationCode()">
    ...
    where "validationCode()" function returns true or false depending on results of validation.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles