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

  • SEARCH
  • Home
  • 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 7459181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T14:24:59+00:00 2026-05-29T14:24:59+00:00

In my app I am displaying a URL on my UIWebView .This webView page

  • 0

In my app I am displaying a URL on my UIWebView .This webView page also consist textfields and I want to disable the autocorrect function = off for these textfields. I have tried all the methods but all in vain.

Here is my code

[webView stringByEvaluatingJavaScriptFromString: @"var field = document.getElementsByTagName('input');"
 "for(var i = 0 ;i < field.length;i++){ "
 "if(field[i].type == 'text'){"
 "field[i].autocorrect = 'off';"
 "field[i].spellcheck='off';"
 "field[i].autocomplete='off';"
 "field[i].value = 'hello';"
 "}"
 "}"];

As you can see i tried all these function (autocorrect, autocomplete and spellcheck as off) both individually and as a combination. But nothing works.

  • 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-05-29T14:25:06+00:00Added an answer on May 29, 2026 at 2:25 pm

    What I discover that if you are fetching an HTML page (and that you don’t have access to its HTML source code) and you are trying to access it as above method then all will work fine like “textfield.value”, “textfield.type” etc. but the “textfield.autocorrect = ‘on’ ” (or off) does not work.

    Because on clicking textfield of HTML page the keyboard of iPhone comes and you cant take object of HTML textfield to Objective C textfield. Hence the two options to solve this are:

    1. Either make autocorrection as off from iPhone “Setting” menu .

    2. Or ask who have access to this HTML page source code to put autocorrect=”off” in between textfield HTML code (i.e. .html file)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How would one go about displaying taskbar notifications? I want to write an app
I have an app that is displaying a webpage using a WebView control. I
I got my uiwebview working and displaying the specified url. the only problem is
Consider a scenario where I'm displaying a restaurant menu in my app. I want
I have been checking around the PayPal API and got this, a webView displaying
I have a WCF web-service and a Silverlight app displaying data from that service.
I've developed a user experience in my iOS app for displaying a different view
in my app I am displaying number strings and noticed that 7.000444 displays as
I am displaying a MFMessageComposeViewController in my app, and all is fine, on iOS
My app has to load an image from a http server and displaying it

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.