Home >Web Front-end >JS Tutorial >js function simulates display of desktop.scf program example_javascript skills

js function simulates display of desktop.scf program example_javascript skills

WBOY
WBOYOriginal
2016-05-16 16:51:461236browse

Sometimes we may have such a need, use JS to simulate such an action, and press the combination shortcut key at the same time: Windows flag key D key. The following function can help us.

Copy code The code is as follows:

function f_ToggleDesktop() {
var objShell = new ActiveXObject("Shell.Application");
objShell.ToggleDesktop();
}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn