www.webdeveloper.com
Results 1 to 3 of 3

Thread: Auto-Resizing pop up window

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Posts
    1

    Exclamation Auto-Resizing pop up window

    I have been trying to figure out how to automatically resize a pop-up window through a link remotely hosted on a website that only opens a small window (not large enough to view my content), to open and then resize to show the entire pop-up. I have been unable to figure it out on Dreamweaver, If you have any information pertaining to this fix It would be greatly appreciated.

    Thank You,
    Evan Bosworth

  2. #2
    Join Date
    Dec 2006
    Location
    Castle Pines North, CO
    Posts
    211
    pop-up wizard might help you, but you do need access to the code to change it

  3. #3
    Join Date
    Sep 2012
    Location
    Kampala, Uganda
    Posts
    10
    Apply this in your head section of the webpage

    <SCRIPT TYPE="text/javascript">
    <!--
    function popup(mylink, windowname)
    {
    if (! window.focus)return true;
    var href;
    if (typeof(mylink) == 'string')
    href=mylink;
    else
    href=mylink.href;
    window.open(href, windowname, 'width=400,height=150,resizable=yes,scrollbars=yes');
    return false;
    }
    //-->
    </SCRIPT>

    By default popups cannot be resized by the user. This is usually not a problem... most popups just contain small notes or ads. If your popup contains a lot of information, however, it's a nice touch to let the user resize the window to something more convenient. Set the popup to resizable by setting the resizable property to yes in the open() command. For example, this command in the popup script opens a resizable popup:

    window.open(href, windowname, 'width=400,height=150,resizable=yes,scrollbars=yes');
    which gives us this popup.

    I learnt this from http://www.mediauganda.com.

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