Click here to Skip to main content
15,905,590 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have deployed asp.net application in a client.. the client prefers full screen(as done on pressing F11) mode hiding address bar from the browser.. now as the user clicks on button, next page is redirected but address bar is shown .. i.e. default setting of browser... Is there a way to code in .net applicaton that allows user to switch between pages without making address bar visible or make it visible till certain interval...
Posted
Comments
ZurdoDev 21-Jan-14 7:29am    
I don't think there is any way ASP.Net can control IE's settings.

1 solution

Refer - How to open maximized window with Javascript?[^]
Quote:
JavaScript
var params = [
    'height='+screen.height,
    'width='+screen.width,
    'fullscreen=yes' // only works in IE, but here for completeness
].join(',');
     // and any other options from
     // https://developer.mozilla.org/en/DOM/window.open

var popup = window.open('http://www.google.com', 'popup_window', params); 
popup.moveTo(0,0);

Please refrain from opening the popup unless the user really wants it, otherwise they will curse you and blacklist your site. ;-)

edit: Oops, as Joren Van Severen points out in a comment, this may not take into account taskbars and window decorations (in a possibly browser-dependent way). Be aware. It seems that ignoring height and width (only param is fullscreen=yes) seems to work on Chrome and perhaps Firefox too; the original 'fullscreen' functionality has been disabled in Firefox for being obnoxious, but has been replaced with maximization. This directly contradicts information on the same page of https://developer.mozilla.org/en/DOM/window.open[^] which says that window-maximizing is impossible. This 'feature' may or may not be supported depending on the browser.
 
Share this answer
 
Comments
Karthik_Mahalingam 21-Jan-14 10:36am    
5!!!
Thanks Karthik. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900