/    Sign up×
Community /Pin to ProfileBookmark

Is there a way I can bring up the normal windows Log Off prompt using Javascript (as if users have pressed Start > Log Off)?

Cheers/…

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@ShampieOct 10.2003 — I do hope you have no bad intentions with doing so.

Javascript is 'in browser' only and cannot perform the action you seek to do, this would be a serious security leak if you would be able to execute such a command with js.
Copy linkTweet thisAlerts:
@jbergthorsonOct 10.2003 — what if you created a signed applet that took up 1x1 pixels in the bottom corner... then you can do pretty much anything i think. It has to be signed though and the user has to accept the certificate... dunno if that is a problem or not, nor do i know for sure if you can log someone off, but i would think it is do-able. Kind of a real pain and a stretch, but if it is really important that you do this logoff thing, then it's worth a try.
Copy linkTweet thisAlerts:
@ShampieOct 10.2003 — Do not mixup javascript with java, they are not the same.

JS cannot perform you request.
Copy linkTweet thisAlerts:
@jbergthorsonOct 10.2003 — i'm not... i know js can't do what he wants... that is why i said use an applet which is java and if it is signed it can run system commands on the user's pc ?
×

Success!

Help @ldoodle spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...