html - How to skip HTML5 form validation in safari? -


I want to skip verification on URL input / form in Safari. Specifically in Mobile Safari

What I can see about it is not supported in Safari

By knowing this, how can I recognize the URL input and / or the entire form Can I leave (I can switch it to a text input, but I want that the URL keyboard gives you iOS)

You can easily disable URLs by using a slice of JavaScript like below:

    

function hesitate to reach things understandable for your program. For example, onload.

  & lt; Body onload = "changeInputType ()" & gt; & Lt; Form action = "#" & gt; URL: & lt; Input type = "url" id = "urlInput" /> & Lt; Input type = "submit" value = "submit" /> & Lt; / Form & gt; & Lt; Script type = "text / javascript" & gt; Function changes InputType () {if (Brasrs Safari ()) {var urlTextBox = document.getElementById ( "urlInput"); UrlTextBox.type = "text"; }} Function is brosarasfari () {var ua = navigator.userAgent.toLowerCase (); If (ua.indexOf ( 'Safari')! = -1) {return ua.indexOf ( 'chrome') & lt; = -1; }             return false; } & Lt; / Script & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

Hope this help


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -