Thread: JavaScript
View Single Post
  #3 (permalink)  
Old April 27th, 2011, 06:14 AM
unicode unicode is offline
Registered User
 
Join Date: Apr 2011
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Default static, dynamic and properties window in javascript

<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<SCRIPT>
function properties_page()
{
for (var i in window)
{
document.write (“Window property(” + i + “): ” +
window[i] + “<BR>”);
}
}
</SCRIPT>
<script language=”JavaScript”>
function dynamic_page(){
open(“http://www.java2s.com”, “myChild”);
}
function static_page()
{
window.open(“http://www.w3schools.com/PHP/php_arrays.asp”, “newWin”,
“resizeable,menubar,toolbar”);
}
</script>
<form name=”form1″>
<input type=”button” name=”b1″ value=”dynamic Child” onClick=’dynamic_page()’>
<input type=”button” name=”b2″ value=”static resize” onClick=’static_page()’>
<input type=”button” name=”b3″ value=”properties_page” onClick=’properties_page()’>
</form>
</body>
</html>
unicodesystems
Reply With Quote