www.webdeveloper.com
Results 1 to 2 of 2

Thread: fullscreen not working

  1. #1
    Join Date
    Feb 2006
    Posts
    1

    fullscreen not working

    I tried the following code to open a page on full screen when it loads

    <SCRIPT LANGUAGE="JavaScript">
    function fullScreen(index.htm) {
    window.open(index.htm, '', 'fullscreen=yes, scrollbars=auto');
    }
    </script>

    <a href="javascript:void(0);" onLoad="fullScreen('full-screen.html');">Open Full Screen Window</a>
    inserted into the head and body sections of the page as follows:

    <html>

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>&nbsp;ELISA Readers </title>
    <meta name="keywords" content="Affordable, Websites, Web Site Design, Web Site Development, Web Design Company, Web Site Solutions, Small Business, Paginas de Web">
    <title> ELISA Readers </title>
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    function fullScreen(index.html) {
    window.open(index.html, '', 'fullscreen=yes, scrollbars=auto');
    }
    // End -->
    </script>
    <meta name="Microsoft Border" content="tlb, default">
    </head>

    <frameset rows="50%,50%" framespacing="0" border="0" frameborder="0">
    <frame name="banner" scrolling="no" noresize target="contents" src="banner_2.htm" marginheight="10" marginwidth="15">
    <frameset cols="22%,78%" frameborder="0" framespacing="0" border="0">
    <frame name="contents" target="main" src="navlink_2.htm" noresize scrolling="no" style="text-align: left; line-height: 100%; margin-top: 0; margin-bottom: 0" marginheight="6" marginwidth="6" >
    <frame name="main" src="home_2.htm" target="_self" scrolling="no" marginheight="10">
    </frameset>
    <noframes>
    <body>

    ,!-- Begin
    <a href="javascript:void(0);" onLoad="fullScreen('full-screen.html');">Open Full Screen Window</a>
    // End -->
    <p>This page uses frames, but your browser doesn't support them.</p>

    </body>
    </noframes>
    </frameset>

    </html>

    I get the following error message

    Script error
    Line 11
    Char 26
    Error Expected '|'
    Code 0

    What am I doing wrong?

  2. #2
    Join Date
    Dec 2004
    Location
    KS
    Posts
    147
    you have nothing calling the function fullScreen() on the frames page.
    also i dont know if this would cause i problem, but you might want to change

    function fullScreen(index.html) {
    window.open(index.html, '', 'fullscreen=yes, scrollbars=auto');


    to

    function fullScreen(url) {
    window.open(url, '', 'fullscreen=yes, scrollbars=auto');

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