BASIC METHODS FOR OPENING POPUP WINDOW IN JAVASCRIPT?

Amit Singh

Total Post:562

Points:2810
Posted by  Amit Singh
 1433  View(s)
Ratings:
Rate this:
  1. Amit Singh

    Post:562

    Points:2810
    Basic methods for opening popup window in javascript?

    There are two basic way to open new window
    1) Using Window.Open() and
    2) Using Window.showModalDialog()

    The Syntax for using these methods are

    . Window.Open(URL,WindowName,Window Features)

    Example:

    window.open ("http://www.dotnetfunda.com","mywindow","status=1,toolbar=1");

    . window.showModalDialog(URL,WindowName,ModalDialog Features)
    for example:
    window.showModalDialog("http://www.mindstick.com", "mywindow","dialogWidth:400px;dialogHeight:395px");

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!