Decision Support Systems For Business Intelligence
    by Vicki L. Sauter

 
 
Table 2: Methods of the Object "Window" (and sub-objects) available in HTML and XML*

alert()                          Displays an alert box with a message and an OK button      
blur()                           Removes focus from the current window     
clearInterval()            Cancels a timeout set with setInterval()        
clearTimeout()           Cancels a timeout set with setTimeout()       
close()                        Closes the current window    
confirm()                    Displays a dialog box with a message and an OK and a Cancel button       
createPopup()           Creates a pop-up window      
focus()                        Sets focus to the current window      
moveBy()                   Moves a window relative to its current position         
moveTo()                   Moves a window to the specified position     
open()                         Opens a new browser window          
print()                         Prints the contents of the current window     
prompt()                     Displays a dialog box that prompts the user for input           
resizeBy()                  Resizes a window by the specified number of pixels            
resizeTo()                  Resizes a window to the specified width and height
scrollBy()                   Scrolls the content by the specified number of pixels           
scrollTo()                   Scrolls the content to the specified coordinates        
setInterval()               Evaluates an expression at specified intervals          
setTimeout() Evaluates an expression after a specified number of milliseconds  

Document methods
open()                         Opens a stream to collect the output from any document.write() or document.writeln() methods
close()                                    Closes an output stream opened with the document.open() method, and displays the collected data
getElementById()                  Returns a reference to the first object with the specified id  
getElementsByName()         Returns a collection of objects with the specified name             getElementsByTagName() Returns a collection of objects with the specified tagname             open() Opens a stream to collect the output from any document.write() or document.writeln() methods         
write()                                     Writes HTML expressions or JavaScript code to a document         

History Methods
back()             Loads the previous URL in the history list     
forward()        Loads the next URL in the history list            
go()                 Loads a specific page in the history list

Location Methods
assign()          Loads a new document         
reload()           Reloads the current document          

replace()         Replaces the current document with a new one

*Adapted from W3Schools, http://www.w3schools.com/htmldom/dom_obj_window.asp

 

   Page Owner: Professor Sauter (Vicki.Sauter AT umsl.edu)