0

I have an html page (quiz.html) which I want to have a shortcut for on desktop. I want, when users click on the shortcut icon the file opens in popup window with no adress bar, toolbar etc (default by browser).

The code for that is window.open("http://www.w3schools.com","width=200,height=100",'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no');

But it works only on buttons. How can I set it up to open from desktop like I want?

mpavlovic89
  • 749
  • 3
  • 16
  • 37
  • what you mean? so when the person save the short code and later open the site from still be a pop up? – Jorge Y. C. Rodriguez Feb 22 '14 at 19:32
  • No. I want to have an icon on local computer (quiz.html). So when person double clicks on it, it opens directly in a pop-up window of browser without any of these toolbars, addressbars, buttons etc... – mpavlovic89 Feb 22 '14 at 19:42
  • look into chrome packaged apps, firefox apps, HTA apps, node-webkit, adobe AIR, and Chrome's "Create Application Shortcuts". you can't do just a pop-up without leaving the launching page behind in the browser. – dandavis Feb 22 '14 at 19:47

1 Answers1

2

Check these:

Javascript's `window.resizeTo` isn't working

Self resize and center a window using javascript (no jquery) on page load

Javascript set browser window size

and get some ideas or conclusions

Community
  • 1
  • 1
Liam James
  • 414
  • 1
  • 6
  • 15