SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jun 2001
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can't stop routine.

    I want to be able to open Netscape & Explorer in full screen mode.

    I have been trying to use the script and link below by putting the link into the <Body> as an onLoad (<BODY bgcolor="#ffffff" TOPMARGIN=100 onLoad="javascript:void(0);fullScreen('demo1.htm')">
    ; however, it just keeps running opening mulitple windows and I have to use Esc and then back out of it with Ctrl-Alt-Del.


    <!-- Begin
    function fullScreen(theURL) {
    window.open(theURL, '', 'fullscreen=yes, scrollbars=auto');
    }
    // End -->
    </script>
    </HEAD>



    <BODY bgcolor="#ffffff" TOPMARGIN=100 >

    <a href="javascript:void(0);fullScreen('demo1.htm')"> click </a>

    Your help would be greatly appreciated.

    Thanks.

    Bruce Brown
    Anacortes, WA

  2. #2
    SitePoint Enthusiast slp's Avatar
    Join Date
    May 2001
    Location
    Australia
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure I completely understand what you're tyring to do, but it seems like the problem is that the command to open the page in a fullscreen window is in the <body OnLoad> section. So the procedure repeats itself each time it loads a new version of demo1.htm. Perhaps a solution would be to have TWO pages. The first one (redirect.htm say) would be an almost empty page, just having the function fullScreen() in the <head> and the tag:

    <body onLoad="java script:void(0);fullScreen('somepage.htm')">

    with the page somepage.htm being the one containing the content which you want to be opened in full screen mode.
    Last edited by slp; Jun 29, 2001 at 00:18.

  3. #3
    SitePoint Evangelist Timothy's Avatar
    Join Date
    Sep 1999
    Location
    Houston TX
    Posts
    414
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It looks like you are trying to make this happen when a user visits your site or page. If that is the case, I just wanted to let you know that many many people will find that quite annoying because it makes them feel like you are controlling their computer and they have trouble getting the window to close unless they have some knowledge of keyboard shortcuts. I just wanted to make sure you were aware of that.

  4. #4
    SitePoint Member
    Join Date
    Jun 2001
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, I am aware of that, but I hope to produce an application with which it won't be a problem.

    Can you help?

    Thanks.

    Bruce


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •