Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The show()
method of the VirtualKeyboard
interface programmatically shows the on-screen virtual keyboard. This is useful when the page needs to implement its own virtual keyboard logic, especially when using the virtualkeyboardpolicy
attribute on contenteditable
elements as explained in Control the virtual keyboard on contenteditable
elements.
This method only works if the currently-focused element is a form control — such as an <input>
or <textarea>
element — or if the focused element is contenteditable
.
The show()
method always returns undefined
and triggers a geometrychange
event.