Reputation: 769
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?
Upvotes: 0
Views: 2819
Reputation: 414
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
Upvotes: 2