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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:46:28+00:00 2026-06-08T18:46:28+00:00

I’m working on a webapp that’s designed for use on large touchscreen monitors. It

  • 0

I’m working on a webapp that’s designed for use on large touchscreen monitors. It is not a mobile app; it will run in FireFox and Chrome on mac OS X and windows. I am looking for a way to programmatically pop up the OS’s native on-screen keyboard from javascript. In Win 7, this happens automatically when the user focuses on a text area (just like iOS and Android), but for older versions of Windows and OS X, the user has to manually pull it up, which is a nuisance I would like to eliminate.

Ideally, it would work like Win7/iOS/Android and pop up automatically when the user focuses on a text area, but I’ll settle for any javascript that pops up the keyboard, even if I have to add it for every text box.

If this is even possible, I’m sure it’s different for Mac vs Windows, so I guess this is really two questions in one. Any help is appreciated.

  • 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-06-08T18:46:30+00:00Added an answer on June 8, 2026 at 6:46 pm

    OK, I’ve tested this locally on my own Mac (version 10.6.8) and Windows XP so the good news is that it works (and it is surprisingly easy).

    The essential idea is:

    1. Know how to open the on-screen keyboard from command line
    2. Set up your browser to allow the command line to be executed from JavaScript
    3. Write your HTML 🙂

    Instructions for both platforms are as follows.

    Mac

    For Mac, download and build this Xcode project:

    • https://github.com/nriley/keyboardViewer

    Make sure your build target is the same as the client Mac (e.g. 64 bit Intel, etc). The output will be an executable file called keyboardViewer. This will pop open the on-screen keyboard when executed.

    Let’s assume you’ve saved keyboadViewer onto the user’s Desktop then the command you will want to execute is (as in my case):

    • /Users/Oliver/Desktop/keyboardViewer.

    Windows

    On Windows, it is much easier to open the on-screen keyboard from the command line. The following (or similar) will do it:

    • C:\WINDOWS\system32\osk.exe

    Firefox

    Next, you are going to have to execute this file (or Windows command) from a browser. So, install the Firefox add-on here:

    • https://addons.mozilla.org/en-US/firefox/addon/commandrun/

    This add-on will allow you to execute OS commands (e.g. execute files) from JavaScript. Before you can execute this from the add-on, you will need to add this command to the list of allowed commands.

    To do this, go to about:config in the browser address bar. Right click on the list of preferences and select New > String. The name of the new preference you want to add is extensions.commandrun.allowedcommands. For the value, enter the following:

    • On Mac: ["/Users/Oliver/Desktop/keyboardViewer"]
    • On Windows: ["C:\\WINDOWS\\system32\\osk.exe"]

    HTML

    Now, you will be able to open the on-screen keyboard from Firefox with HTML like this:

    <script language="javascript">
    function openKeyboard(){
        CommandRun.run("/Users/Oliver/Desktop/keyboardViewer", []);
    }
    </script>
    
    <input type="text" onfocus="javascript:openKeyboard();" />
    

    On Windows, substitute the following:

    CommandRun.run("C:\\WINDOWS\\system32\\osk.exe", []);
    

    Alternative

    An alternative is to write your own browser in something like Adobe Air. Using that method, your JavaScript calls your Air app and your Air app then executes keyboardViewer (or the Windows equivalent).

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

Sidebar

Related Questions

I need a function that will clean a strings' special characters. I do NOT
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I want use html5's new tag to play a wav file (currently only supported
I have a French site that I want to parse, but am running into

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.