javascript - Create shortcut, that opens a website and reload it after x ms -


we've upgraded group policies @ work because of big migration project. nevermind... thing is, of our users use java application, reads smart card reader. on new machines doesn't work in ie, has run in firefox. trouble is, first time firefox opens it, says there's no java. reload it, it's fine.

as users users, hate thought of having reload page, , it's not elegant either. process of upgrading in company difficult, , i'm entry level desktop support guy, won't fixed time soon.

so thinking... there way create shortcut, open page , reload once finishes loading first time?

it can shortcut local html file redirects final location...

you can use vbs:

set wscriptshell = createobject("wscript.shell") wscriptshell.run("http://www.facebook.com/") wscript.sleep(2000) wscriptshell.sendkeys "{f5}" 

this 1 opens page in browser, waits 2000 ms (probably enough page load) , sends "f5" key active window. may not perfect solution, can extend match needs.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -