I made an applet. It's starting when web page is loaded. But applet lost focus, when web page lost focus too and need to click on area of applet and then it gained focus. I'm tried variants but it's not helpful
document.getElementById(appletId).focus();
document.getElementById(appletId).requestFocus();
How to set focus to applet in java script?
scriptable=true
requestFocusInWindow()
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.