53 users online (1 members and 52 guests)  


  Results 1 to 9 of 9

Related

  1. Opening a file to a constant "size".    Forum: Javascript Forum
    Replies: 2
  2. Opening a new window    Forum: HTML Forum
    Replies: 12
  3. Opening New Window    Forum: Javascript Forum
    Replies: 9
  4. Page opening in new window - Help    Forum: HTML Forum
    Replies: 7
  5. problem with javascript opening a new window    Forum: Javascript Forum
    Replies: 4
  1. #1
    grace's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2009
    Location
    Misery
    Posts
    9

    Lightbulb Verifing Window 'size' upon Opening a File.

    The items I've been able to consort to are pop up new windows and refresh then resize window 'Re-sizing' window scrxpts . There must be some copy right or like "hotkey" fear of printing any thing like this . If be the type of script you bear - // That's why I'm note dropping in the javascript bin .

    signed , A caLL to Aide

  2. #2
    coothead's Avatar
    bald headed old fart

    Status
    Offline
    Join Date
    Aug 2003
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    732

    Re: Verifing Window 'size' upon Opening a File.

    Hi there Grace,

    and a warm welcome to these forums.

    Does this example help your situation....
    Code:
    
    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en">
    <head>
    
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="language" content="english"> 
    <meta http-equiv="Content-Style-Type" content="text/css">
    <meta http-equiv="Content-Script-Type" content="text/javascript">
    
    <title>Body sizes revealed</title>
    
    <style type="text/css">
    body {
        background-color:#f0f0f0;
     }
    #box {
        width:324px;
        height:200px;
        border:1px solid #999;
        margin:20px auto;
        box-shadow:#333 10px 10px 20px;
        background-color:#f93;
    }
    </style>
    
    <script type="text/javascript">
    
    function init(){
       var bw=document.body.offsetWidth;
       var bh=document.body.offsetHeight;
    
       alert('The window width is '+bw+'px\n\nThe window height is '+bh+'px');
    
     }
       window.addEventListener?
       window.addEventListener('load',init,false):
       window.attachEvent('onload',init);
    
    </script>
    
    </head>
    <body>
    
    <div id="box"></div>
    
    </body>
    </html>
    

  3. #3
    grace's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2009
    Location
    Misery
    Posts
    9

    Re: Verifing Window 'size' upon Opening a File.

    Thank you very much sir - coothead .
    " emmeatified "
    Oh, please use this as email , a little clippy return snippe not that your not aware .
    HTML Code:
    <!-- Non-Data SCRIPT
    
    --->
    Only sticks on wrapped scrxpts

  4. #4
    coothead's Avatar
    bald headed old fart

    Status
    Offline
    Join Date
    Aug 2003
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    732

    Re: Verifing Window 'size' upon Opening a File.

    Hi there grace,

    your first post was very difficult to comprehend, your second, totally impossible.

    I don't know what substance you're on, but I am definitely too old to try it.

  5. #5
    grace's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2009
    Location
    Misery
    Posts
    9

    Re: Verifing Window 'size' upon Opening a File.

    By wrapped scrxpts i mean any page using my
    HTML Code:
    <!-- Non-Data SCRIPT
    
    --->
    and also containing
    HTML Code:
    <script>
    <--
    
    //->
    </script>
    This will leave a ---> and possibly even the notes which are in bound by the Non-Data Script (sutch details as so you may leave with studied pages of noteability, not visible at open file viewing ).
    But still, at hand could you tell me how a file which opens with var bw & var bh is actually detailed for use .

  6. #6
    coothead's Avatar
    bald headed old fart

    Status
    Offline
    Join Date
    Aug 2003
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    732

    Re: Verifing Window 'size' upon Opening a File.

    Hi there grace,

    These comments within the script or style tags...
    Code:
    
    <--
    
    //->
    
    ...have not been necessary for many years; since Netscape 4 I believe.

    Your original post was entitled...
    Verifying Window 'size' upon Opening a File.
    The script supplied did that.

    What are you actually trying to achieve?

    Please answer in plain simple English, if possible.

  7. #7
    grace's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2009
    Location
    Misery
    Posts
    9

    Re: Verifing Window 'size' upon Opening a File.

    Even though not used, if applied the commet will show in document . Now the question posted first. My file to open at a nominal size .

  8. #8
    coothead's Avatar
    bald headed old fart

    Status
    Offline
    Join Date
    Aug 2003
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    732

    Re: Verifing Window 'size' upon Opening a File.

    Hi there grace,
    Sorry, I do not have the foggiest idea what you on about or what you require.
    I must assume that English is not your native language.
    Perhaps it is possible that you have friend, whose English is better than yours.
    If so, get him/her to help you compose your posts.

  9. #9
    grace's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2009
    Location
    Misery
    Posts
    9

    Re: Verifing Window 'size' upon Opening a File.

    I'm glad we got that straight; and I'm sorry if I offended you coothead . I'm not verifying a window anything while opening . I'm glad I asked for I've learned a bit to my question . Sorry , and I know you'd rather I start another thread .