Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > JavaScript API > Popup object > Methods

Popup object > setHeight()

Scroll Prev Next More

 

The setHeight() method sets the height of the popup window. This method needs to be called after popup created and displayed.  

Syntax

popup.setHeight(height);

Arguments

height

height of the popup window in pixels

Return value

No return value.

Example

Open a page in popup and set both width and height to 500 pixels.

 

var popup = Runner.displayPopup({
   url: Runner.pages.getUrl("products","add"),
   header: 'Add Product'
});

 

Now in some other Javascript event you can do this:

 

popup.setWidth(500);
popup.setHeight(500);

See also:

Dialog API

Runner.displayPopup()