Home > front end > Bosses for help, ie jump Google browser
Bosses for help, ie jump Google browser
Time:10-02
Because the system have a page with Google browser efficiency is better, asking our bosses, is there a way to let ie automatically jump Google?
CodePudding user response:
You can't decide what users use the browser, if you can, you also do ie?
CodePudding user response:
/* Create ActiveXObject instance, only can create effective in IE, */ Var objShell=new ActiveXObject (" WScript. Shell "); /* Command parameters description CMD. Exe/c dir is executed after the dir command to close the command window, CMD. Exe dir/k is performed after the dir command does not close the command window, Start CMD. Exe/c dir dir instructions executed after will open a new window, the window will close, CMD. Exe start dir/k will open a new window after execution dir command, the window won't shut down, The dir here is start chrome www.baidu.com//with Google browser open baidu */ ObjShell. Run (" CMD. Exe/c start chrome www.baidu.com ", 0, true);
- ie jumped other browsers implement other browser ie bad light code implementation