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 455637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:23:27+00:00 2026-05-12T22:23:27+00:00

Mobile Safari on the iPhone allows you to specify different keyboard types for text

  • 0

Mobile Safari on the iPhone allows you to specify different keyboard types for text input boxes as demonstrated in the Safari How-To’s for iPhone, here. However, I’m wondering if it’s possible to change keyboard type displayed when a Javascript prompt() dialog is displayed.

I know I can roll my own modal pop-up if I have to, but I’d like to know if it’s possible to use the built-in prompt() function with a different keyboard (numeric, in my case).

  • 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-12T22:23:27+00:00Added an answer on May 12, 2026 at 10:23 pm

    I am pretty sure the answer is, unfortunately, “no”. Consider the following experiment:

    <html>
    <head>
     <script type="text/javascript">
       function doit() {
         prompt("this is a test");
       }
     </script>
    </head>
    <body>
     <a href="javascript:doit();">Click me</a>
    </body>
    </html>
    

    If you put that into an HTML page and load it into Mobile Safari, then turn your phone into landscape view, then click on the link, what do you expect to happen? What you’d expect to happen is for the prompt dialog to come up in landscape orientation with the wide keyboard. What actually happens is that Mobile Safari rotates back to portrait view and pops up the small keyboard, then rotates back after you enter your text. (For fun, alert the results, the alert rotates the display too…) Note that the HTML 5 customizations (type=”tel” or pattern=”[0-9]*”) properly pop up landscape keyboards when appropriate.

    Note that this is not a priori evidence that you can’t customize the keyboard’s appearance, but it is a pretty strong indicator that the javascript prompt behavior is bolted on and not well integrated into the rest of the user experience.

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

Sidebar

Related Questions

I'm using a special input type for the iPhone mobile safari browser: <li><textarea placeholder=Store
I want to display very wide, panoramic images in Mobile Safari (iPhone, iPod, iPad).
Mobile Safari is a very capable browser, and it can handle my website as
I'd like to add a bookmark to a users Mobile Safari bookmarks when they
Windows Mobile devices have different behaviour for suspending when the device is on battery
Supposedly in HTML5 in Safari, you can define your input type as search and
I'm currently working my way through the facebook-iphone-sdk and the MGTwitterEngine and I'm wondering
I'm trying to determine whether a users does a touchupinside in mobile safari for
Windows Mobile pops up a busy wheel - a rotating colour disk - when
Windows Mobile 5 was based on CE 5.0. Windows Mobile 6 was based on

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.