A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Website in popup window.

Hybrid View

  1. #1
    Member
    Join Date
    Jan 2003
    Location
    Melbourne
    Posts
    35

    Website in popup window.

    Just wondering how I can make my website in a pop-up window (a window which doesn't have the toolbar/address bar on top etc.) and which is sized to my liking.

    e.g....

    someone goes to my website (www.mywebsite.com), and immediatley after a popup window comes up with the website, although the original window is still there with basics like the website logo, contact links etc.

    Thanks in advance, Alex.

  2. #2
    Senior Member Ingale's Avatar
    Join Date
    Jun 2003
    Posts
    332
    Create a HTML file that will include your site (the pop-up window) and in between the HEAD tags insert the following code:

    PHP Code:
    <script language="JavaScript">
    <!--
    function 
    popup(theURL,winname,features) {
    window.open(theURL,winname,features);
    }
    //-->
    </script
    Modify, if needed...

    Then in your main HTML file (the one that should be remained open) place the following code in the BODY tag:

    Code:
    onLoad="popup('http://www.yourdomain.com/yourfile.html','YourWinName', 'toolbar=no, location=no, 
    status=no, menubar=no, scrollbars=no, resizable=no, width=800, height=600')";
    Modify the details to your liking.
    Last edited by Ingale; 01-25-2004 at 11:01 AM.

    Sometimes the most simple things are the most effective...

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center