title of popup whilst loading

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David

    title of popup whilst loading

    Hi,

    I use the following page code to open a popup window - it works OK, but
    whilst the popup is loading you can see the URL in the title of the popup
    until it's fully loaded and then the title changes to whatever I put in the
    <TITLE></TITLE>

    Any way to force the popup to display the <TITLE> whilst the page loads?

    Thanks

    <html>
    <head>
    <TITLE>David' s work site</TITLE>
    </head>

    <script language="JavaS cript" type="text/javascript">
    function popup() {
    window.open( "http://mysite/index.asp" ,
    'newwin','toolb ars,menubar,scr ollbars=yes,too lbar=1' ) ;
    }
    </script>

    <BODY onLoad="javascr ipt:popup()">
    </body
    </html>
  • Grant Wagner

    #2
    Re: title of popup whilst loading

    David wrote:
    [color=blue]
    > Hi,
    >
    > I use the following page code to open a popup window - it works OK, but
    > whilst the popup is loading you can see the URL in the title of the popup
    > until it's fully loaded and then the title changes to whatever I put in the
    > <TITLE></TITLE>
    >
    > Any way to force the popup to display the <TITLE> whilst the page loads?
    >
    > Thanks
    >
    > <html>
    > <head>
    > <TITLE>David' s work site</TITLE>
    > </head>
    >
    > <script language="JavaS cript" type="text/javascript">
    > function popup() {
    > window.open( "http://mysite/index.asp" ,
    > 'newwin','toolb ars,menubar,scr ollbars=yes,too lbar=1' ) ;
    > }
    > </script>
    >
    > <BODY onLoad="javascr ipt:popup()">
    > </body
    > </html>[/color]

    No. All you can do is include <TITLE> tags on the page being opened as early as
    possible and hope the browser displays it as soon as it sees it.

    Besides, the user can always get the URL of the popup anyway, or they can
    bookmark it directly, both of which would reveal the URL to the user.

    Also, you don't need onload="javascr ipt:methodCall( );", onload="methodC all();"
    will work just fine.

    --
    | Grant Wagner <gwagner@agrico reunited.com>

    * Client-side Javascript and Netscape 4 DOM Reference available at:
    *


    * Internet Explorer DOM Reference available at:
    *
    Gain technical skills through documentation and training, earn certifications and connect with the community


    * Netscape 6/7 DOM Reference available at:
    * http://www.mozilla.org/docs/dom/domref/
    * Tips for upgrading JavaScript for Netscape 7 / Mozilla
    * http://www.mozilla.org/docs/web-deve...upgrade_2.html


    Comment

    Working...