showModalDialog is a method of the window object. In object-oriented programming, an object is some amorphous blob of data that can contain data values (properties) and programming instructions (methods). So, for example, your browser contains a "window" object. window.innerWidth and window.innerHeight would contain numeric values indicating those properties; window.open() and window.close() are methods which cause those functions to execute.
| How about a date? |