如果在全屏模式下,如何在不使地址栏可见的情况下在Asp.Net网站页面之间切换 [英] How Do I Switch Between Pages Of Asp.Net Website Without Making Address Bar Visible If It Is In Full Screen Mode

查看:90
本文介绍了如果在全屏模式下,如何在不使地址栏可见的情况下在Asp.Net网站页面之间切换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在客户端部署了asp.net应用程序..客户端更喜欢全屏(如按F11所做)模式隐藏浏览器的地址栏..现在当用户点击按钮时,下一页被重定向但是地址栏显示..即浏览器的默认设置...有没有办法在.net应用程序中进行编码,允许用户在不显示地址栏的情况下切换页面或使其在某段时间内可见...

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...

推荐答案

请参阅 - 如何使用Javascript打开最大化窗口? [ ^ ]

Refer - How to open maximized window with Javascript?[^]
Quote:

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);



除非用户真的想要,否则请不要打开弹出窗口,否则他们会诅咒你并将你的网站列入黑名单。 ;-)



编辑:糟糕,正如Joren Van Severen在评论中指出的那样,这可能不会考虑任务栏和窗口装饰(可能依赖于浏览器)办法)。意识到。似乎无视高度和宽度(只有param是全屏=是)似乎在Chrome和Firefox上也可以使用; Firefox中禁用了原始的全屏功能,因为它是令人讨厌的,但已经被最大化所取代。这与 https://developer.mozilla.org/en/DOM/window.open的同一页面上的信息直接相矛盾。 [ ^ ]说窗口 - 最大化是不可能的。根据浏览器的不同,可能支持也可能不支持此功能。


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.


这篇关于如果在全屏模式下,如何在不使地址栏可见的情况下在Asp.Net网站页面之间切换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆