Can I change the keyboard type when using the Javascript hint function () when using Mobile Safari on iPhone?

Mobile Safari on the iPhone allows you to specify different types of keyboards for text entry boxes as shown in the instructions for Safari for the iPhone here . However, I am wondering if it is possible to change the keyboard type displayed when the Javascript () prompt dialog is displayed.

I know that I can expand my own modal popup if necessary, but I would like to know if it is possible to use the built-in prompt () function with another keyboard (numeric, in my case).

+5
source share
1 answer

I am sure that 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>

HTML- Mobile Safari, , , ? , , . , , Mobile Safari , . ( , , ...) , HTML 5 (type = "tel" pattern = "[0-9] *" ), , .

, , , , javascript .

+4

All Articles