Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Code that automatically go to login page and click login:

javascript: window.location = '';
while (true) {
    if (document.readyState == "complete") {

Code passed through jsbeautifier; original does not have line breaks

I paste this script on urlbar but its not working (it go to but not login) but if I'm on and paste this script it works. I don't understand why it does not work.

share|improve this question
It might look if it comes from another page. – Alex Jul 9 '11 at 18:02
On which browser are you doing this? while (true) is effectively an infinite loop and should lock up the browser – Yi Jiang Jul 9 '11 at 18:19
@Yi Jiang im use firefox and remember id, pass for login – 1eftHer0 Jul 9 '11 at 18:37

javascript: URLs are run in the context of the current page.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.