Disable form validation in browser

后端 未结 5 2254
Happy的楠姐
Happy的楠姐 2021-02-12 23:53

I\'m coding on a website with forms and use HTML5 validation - no rocket science so far. Everything works fine for me in Google Chrome, but I want to get sure that even a IE 6 u

5条回答
  •  北海茫月
    2021-02-13 00:06

    To disable validation in HTML5 use

    ...

    Refer this question for more details.I think Junit can also help to test server side validations.
    Use parameterized query to gain more security. (If SQL query is formed using user input).


    EDIT :

    You can set it in About:flags
    Steps:
    1. On your Google Chrome address bar, type “about:flags” (without the quote) and press Enter.
    2.Scroll down the list until you see the option “Disable HTML5 interactive form validation”.
    3.Click the enable link.
    Check : http://wikibin.org/articles/google-chrome-about-and-chrome-urls.html


    EDIT 2 :
    Just came to know that About:flags is depreciated use Use chrome://flags instead. Thanks @Max.

提交回复
热议问题