dcsimg
www.webdeveloper.com
Results 1 to 6 of 6

Thread: redirect and fullscreen

  1. #1
    Join Date
    Nov 2003
    Posts
    6

    redirect and fullscreen

    Hi all!

    I need a help. I was surching the JS sites, I found sone help, but still it was not possible for me to create a sctipt that:
    1. redirect the browser (IE and NS);
    2. opens the new window in a full screen mode
    3. closes the old window

    I'll be realy thankful if anyone helps me!...
    Last edited by TripleH; 11-17-2003 at 01:13 PM.

  2. #2
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Tip 1: Don't mess with the users original browser window...

  3. #3
    Join Date
    Sep 2003
    Location
    Portsmouth, UK Occupation: Web Developer
    Posts
    2,602
    Tip 2: If you really have to, make sure there warnings about saying what your gonna do

  4. #4
    Join Date
    Nov 2003
    Posts
    6

    remove alert?...

    This is what I managed to write.
    My questions are:
    1. how to avoid (if possible at all) the alert, coming from self.close()
    2. Is it possible to open an html file in fullscreen mode from the very begining? Thus I'll avoid the whole mess...
    ***********************
    <HTML>
    <HEAD>

    <script LANGUAGE="JavaScript">

    <!--
    closeTime = "5000";
    function closeTimer() {
    setTimeout("newURL()",closeTime);
    }

    function newURL() {
    newURLWindow = window.open("fontlist.htm","redirect","fullscreen=yes");
    self.close()
    }
    //-->
    </script>

    <BODY onLoad="closeTimer()">
    <center>
    <H1>YOU WILL BE REDIRECTED; NEW WIDNOW WILL OPEN IN FULLSCREEN; PRESS ALT+F4 TO CLOSE IT!</H1>
    </center>

    </BODY>
    </HTML>
    *******************
    Last edited by TripleH; 11-17-2003 at 03:52 PM.

  5. #5
    Join Date
    Jul 2003
    Location
    Boston Area, Massachusetts
    Posts
    3,489
    <script type="text/javascript">
    onload = function() {
    setTimeout(function() { closes.Click(); window.open('foo.html', '', 'fullscreen=1'); }, 5000);
    }
    </script>


    <object id="closes" style="display: none;" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
    <param name="Command" VALUE="Close" />
    </object>

  6. #6
    Join Date
    Nov 2003
    Posts
    6
    Originally posted by fredmv
    <script type="text/javascript">
    onload = function() {
    setTimeout(function() { closes.Click(); window.open('foo.html', '', 'fullscreen=1'); }, 5000);
    }
    </script>


    <object id="closes" style="display: none;" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
    <param name="Command" VALUE="Close" />
    </object>
    Wneh I use this script in a html fime, there must be something, which I miss, because I always get the alert message:
    this operation can only wfunction within HTML help?

    What do I miss?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles