/    Sign up×
Community /Pin to ProfileBookmark

Hide Browser Navigation pane (standard buttons, address bar) and view in full screen

I want to be able to execute JavaScript code on the onLoad event of a new browser page (aspx page) that will hide the navigation bar (standard buttons, address bar, l…) and put the browser in full screen mode (F11) to remove the file, edit, view menu options.

Alternatively, I would like to be able to prevent the user action of clicking the back, forward and refresh/reload current page buttons, as well as using Alt+F4.

I have currently prevented the user from clicking the function key to refresh the browser and from selecting options from the right click menu.

I require such interaction because upon refresh, the browser states get reset to default which gives undesirable results.

Thanks in advance for your responses.
Dblue

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@felgallAug 17.2006 — The web page owner controls the web page content. Everything else is under the control of your visitor.

If you are creating pages for an intranet then you can configure all the computers on the network to apply restrictions such as you describe but it can't be done on the internet. You can use Javascript to open a popup window fullscreen with just a titlebar but that doesn't stop them using CTRL-F5 refresh, ALT-leftarrow back, or ALT-rightarrow forwards and there is no way that the browser can disable CTRL-F4 so it certainly can't allow a web page access to do something it can't do itself. Also you can't block access to the right click menu unless the visitor is using a browser that stupidly allows you to do so, proper web browsers ignore such requests.

Design your page so it works as a web page, don't try to change the definition of what a web pahge is to fit your design.
Copy linkTweet thisAlerts:
@KorAug 17.2006 — I want to be able to execute JavaScript code on the onLoad event of a new browser page (aspx page) that will hide the navigation bar (standard buttons, address bar, l...) and put the browser in full screen mode (F11) to remove the file, edit, view menu options.

Alternatively, I would like to be able to prevent the user action of clicking the back, forward and refresh/reload current page buttons, as well as using Alt+F4.

I have currently prevented the user from clicking the function key to refresh the browser and from selecting options from the right click menu.

I require such interaction because upon refresh, the browser states get reset to default which gives undesirable results.

Thanks in advance for your responses.

Dblue[/QUOTE]


Wouldn't you like also to close my other applications in my computer, to make my back button go forward and my forward go backward, to change my clock and my desktop as well? Or maybe better to delete or to formate -u my HD? :rolleyes: ?

As a user, if i would, my mistake, enter this sorta page, that first enter will be for sure the last one. Man, leave users to have control upon all their browser's facilities,. Why, for God's sake, to maximize, prevent back/forward, hide the bars, the tools, prevent closing...?

The "God blessed" Alt-F4 is not to be captured, thank God, and nor CTRL-ALT-DEL, nor other of the same kind! What do you want?... To take control over the user's computer? These are the OS's keys facilities, and it is good that is so. Forget it. It is impossible for security obvious reasons. Build normal pages, and you will earn more money.
×

Success!

Help @dblue 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.25,
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,
)...