Please enable JavaScript to view this site.

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

Popup object > close()

Scroll Prev Next More

 

The close() method closes the previously open popup window.

Syntax

popup.close();

Arguments

No arguments.

 

Return value

 
No return value.

Example

This is an artificial example. We open Products table Add page in popup and close it right after that.

 

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

See also:

Dialog API

Runner.displayPopup()