Please enable JavaScript to view this site.

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

Popup object > setPos()

Scroll Prev Next More

 

The setPos() method sets the width of the popup window.  

Syntax

popup.setPos(x, y);

Arguments

x

x coordinate of the popup window

y

y coordinate of the popup window

Return value

No return value.

Example

Open a page in the popup and move the popup to coordinates (200,200) counting from browser's top left corner.

 

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

See also:

Dialog API

Runner.displayPopup()

 

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software