0

I have disabled JS in my IE browser for testing purposes. The validation port is not working now which is good. But the page does a post back when I click a submit button.

Is this the correct behavior? Because All these days what I was believing is, even submit button call is being triggered by JavaScript? Am I wrong?

3
  • 1
    HTML forms could be submitted to the server before Javascript even existed. An <input type="submit"> element does not require scripting in order to perform its job. So yes, you're wrong on that part. Commented Jul 27, 2013 at 7:11
  • please post it in answer section. This is what i expected i wil make this as an answer Commented Jul 27, 2013 at 7:13
  • How can i get the question as soon as it posted? Commented Jul 27, 2013 at 7:13

1 Answer 1

1

The postback is done via JavaScript in MVC helper generated forms indeed. But if you disable JAvaScript and have button inside the form that is a type of submit it will still post the form without JavaScript. So this is the expected behavior.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for the answer. Curious to know, How can i get the question as soon as it posted?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.