Question:

How do you specify the size of a window for a web page?

by Guest57721  |  earlier

0 LIKES UnLike

I'd like to make a small window that will be opened after clicking a link, but I only want a small window that you can't maximise. Just like the pop ads but with a scrollbar to look down the page. Cheers.

 Tags:

   Report

2 ANSWERS


  1. You will need to use Javascript to do this.

    window.open(URL, windowName[, windowFeatures])

    windowFeatures will be a string like this: "status=1,height=350,width=350"

    Here is a list of all things that can be changed.

    status: The status bar at the bottom of the window.

    toolbar: The standard browser toolbar, with buttons such as Back and Forward.

    location: The Location entry field where you enter the URL.

    menubar: The menu bar of the window

    directories: The standard browser directory buttons, such as What's New and What's Cool

    resizable: Allow/Disallow the user to resize the window.

    scrollbars: Enable the scrollbars if the document is bigger than the window

    height: Specifies the height of the window in pixels. (example: height='350')

    width: Specifies the width of the window in pixels.

    See sources for a more detailed tutorial.


  2. Make it easy on yourself and use this free online Popup Window Generator:

    http://javascript.internet.com/generator...

    Ron

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.