Disable the minimize button in Internet Explorer IE9 - javascript

I can use window.open resizable=no to disable/grey out the maximize button, but when I try to use dialog=yes,minimizable=no the minimize button won't grey out/disable, Please help me find a way to disable this minimize button, Thanks!
I want to apply this setting to a kiosk computer because I dont want user to minimize their browser and leave their credential open for the next person

"Dialog" and "Minimizable" are not valid options. You cannot, and should not, prevent a user from being able to minimize a window on their desktop.
If you wish to run the browser on a Kiosk, I would suggest loading the browser in Kiosk mode.

Related

Open "small" browser from Outlook

I am going to make an Outlook add-in very soon.
It has the option, that if a user press a button, a browser should be opened, and the user should fill out the required forms on the URL.
Now I don't imagine it is any problem to open a browser from Outlook itself. But I suppose that if you just open a link, then the whole browser will be loaded up, with all tabs, full size and so on.
Is it possible to just open a small browser window, almost like a popup? No tabs or anything. It should just use the users default browser.
I hope you understand my question, and can guide me to a solution :)
To answer you question, take a look at the WebBrowser class. You can put it in a simple windows forms application.
However, unless you have specific requirements to use a specialized browser, I would simply let the system default browser handle any links.
Create and display a custom form. You can use a browser control in that window.

javascript.window.open:open page only in internet explorer

window.open("http://www.w3schools.com");
This code opens a page but with the user's default browser.
but
i want to open page only in internet explorer.
Is it possible?
i want to open page only in internet explorer Because i use Activex.(is it possible that run activex in mozila?)
the others are probably blocking the popup you generate
Try it on chrome and watch the right part of the address bar, you should see there a "Popup blocked" message
I don't know if you can open a windows from one browser to other for security reasons or other issues.
But you can put a message in the page warning the user to use a specific browser if he is not using it. To know if the user is using or not IE you can use:
Check if user is using IE with jQuery

Run HTML page in Windows window like exe

I have an HTML quiz (it is designed in html+css, but calculated and animated in JavaScript). Therefore, it opens in browser by default (quiz.html). I want to make it open in for example Windows window or something different. Is it possible. Or some portable browser, and set up HTML file to open by it. How?
The problem is that browser environment (bookmarks, forward, refresh buttons) is visible, and I don't want that. I want it to open in its specific environment, because it will be placed on 20 computers with different browsers etc... I can install anything on those machines. Or is it maybe possible to set up my quiz.html file to open in some other unpopular browser with no so many buttons and details?
Like said in comment, you might try to open your page in a pop.
http://www.w3schools.com/jsref/met_win_open.asp
http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_open
With the following code, I manage to get a popup without anything but the page and the address bar (on Firefox Potable).
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');
You would still have the adress bar in Firefox, but this can be remove following this post:
Open new popup window without address bars in firefox & IE
If restricting your users to IE is ok then you want an HTML Application (*.HTA) which allows the hosting of HTML/Script in a standalone non-browser window which would seem to be ideal for your purposes.
MSDN ref.

Change Window State to Fullscreen

How can I change the web browser window state to Fullscreen in javascript(Like when user press F11)? I know how can I specify Window State of new Window that has been opened by Window.Open Method but I want to change the sate of current Window.
You can't and you shouldn't do this.
You shouldn't do this, because it is a annoying user experience. So let the user decide and maybe ask him to press the button for fullscreen mode, but never force him.
You can't because the browser vendors disabled this feature for the reasons of my last point.
Minimal workarround would be to set the window size of the new window to something close to the screen resolution, but this could be tricky if the user has a dual screen.
You can't.
Just ask for the user to press to press F11 and then detect if the user pressed it by checking the key code 122 (eg: keyup event) and comparing the size of the window with the size of the screen (screen.width/height and window.innerWidth/Height).
It's not perfect, specially for users with multiple screens.
You can open a window without toolbars with JS:
window.open("http://www.stackoverflow.com","mywindow","menubar=0,resizable=1,toolbar=0,status=0,width=5000,height=5000");
It will probably be blocked by popup blockers, but that is the most you can do.
So far I know, it is only possible with security privileges, like in an intranet.
For example:
The InternetExplorer.Application ActiveX objects have a "fullScreen" method.
In Firefox 3+, if you have Chrome-privileges you can use "window.fullScreen = true;"
but without those privileges this property is read-only ( https://developer.mozilla.org/en/DOM:window.fullScreen ).
Easy.
<strong>Please view in fullscreen (F11 on most browsers).</strong>
Here's why
No, there's no cheat to remove control of a browser from the user.

Javascript for full screen

is there a javascript script that auto fullscreen mode the browser? example if you visit my site, the browser will auto fullscreen upon load..
Please, don't do this. You shouldn't resize the browser, that's the user's choice to make.
If I have my browser at a certain size, and your site is one of 20 tabs, why should the other 20 be resized?
If you're using window.open() to open a new window and want to specify a size, that's fine, but don't resize the browser. Most browsers actively block this, for a reason.
I looked into this once and like Nick said browsers do not allow you to control setting fullscreen for security reasons e.g. think malicious website recreating the toolbar to trick users. The closest you can get to it is explaining to the user in a ribbon or popup the first time they visit, how to get to fullscreen and letting them make the decision. Then the trick is check for the keypress on f11 assuming that's how you had the user do it.
The only place I wish it was allowed for the site to go fullscreen is webapps.

Categories

Resources