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
Release: 2016-05-16 16:51:46
Original
1232 people have browsed it

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();
}
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template