Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Window Object

/*
The window object represents a window in browser.
An object of window is created automatically by the browser.
Window is the object of browser, it is not the object of javascript. 
*/
<script type="text/javascript">  
function msg(){  
 alert("Hello Alert Box");  
}  
</script>  
<input type="button" value="click" onclick="msg()"/>  
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #Window #Object
ADD COMMENT
Topic
Name
2+8 =