[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1798
  • Last Modified:

onload fullscreen?

Hello Experts

I have a page that currently uses this:
window.open("https://www.mysite.com/folder/page.aspx", "_blank", "location=no,menubar=no,status=no,toolbar=no,titlebar=no,resizable=yes,scrollbars=yes,channelmode=yes,fullscreen=yes");

When the page loads and it calls this javascript a new window is opened with no toolbars or anything else.  Unfortunately this is treated as a popup.  How do I get around this?  Is there something I can do without using window.open?  I want the page to be in fullscreen mode basically without the toolbars/address bar etc.

0
jay-are
Asked:
jay-are
  • 6
  • 6
2 Solutions
 
MrMintanetCommented:
It is a pop-up.  There is no other way to do this unless you completely modify the browser.
0
 
jay-areAuthor Commented:
Is there anyway to force the browser to go fullscreen on page load then?
0
 
MrMintanetCommented:
http://www.yourhtmlsource.com/javascript/popupwindows.html


<html>
<head>
<title></title>
<script type="text/javascript">
function fullscreen(theurl) {
window.open(theurl, '', 'fullscreen=yes, scrollbars=auto');
}
</script>
</head>
 
<body>
<a href="javascript:void(0);" onclick="fullscreen('http://www.webmasterworld.com');">open full screen window</a>
</body>
</html> 

Open in new window

0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
jay-areAuthor Commented:
I need to actually load the page full screen without user interaction.  Basically they are following a link that leads to my page that needs to be fullscreen.  Is there a way to do this without having the user click another button/link?
0
 
MrMintanetCommented:
You can't do that unless you create your own custom web browser.  This is very easy to do in VB.NET.
0
 
jay-areAuthor Commented:
Ok, examples in vb.net?
0
 
MrMintanetCommented:
0
 
jay-areAuthor Commented:
That's for winforms.  I need something I can do in webforms.
0
 
MrMintanetCommented:
I apologize.  To be honest, I should be home sleeping today.  I am a bit under the weather.

I will get back to you.  I do remember having the same problem as you are having, and I do believe that this is impossible to do.  I am sure there is a better alternative, though.  I will do a bit of research.
0
 
jay-areAuthor Commented:
Ok thanks.
0
 
jay-areAuthor Commented:
Well I found a way to do it and it works.

<BODY onload="top.moveTo(0,0);top.resizeTo(screen.width-2,screen.height-2);">

I can't get rid of toolbars and stuff but that will get me pretty close.

Thanks for the help.
0
 
MrMintanetCommented:
Thank you very much for the points.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now