Open a new window with your own options : Window Properties « Window Browser « JavaScript DHTML






Open a new window with your own options

   
<html>
<head>
<title>Windows</title>
</head>
<body>
<script type="text/javascript">
var optionString = prompt("Enter your option string");
optionString = optionString ? optionString : "";

document.writeln("Options are: " + optionString);
window.open("http://java2s.com","test",optionString);
</script>

</body>
</html>

   
    
    
  








Related examples in the same category

1.Modifies the properties and the contents of the browser's windows
2.Access window properties
3.Displaying the Associative Properties Area of a Window Object
4.Change status bar with mouse click
5.Output tag name from window event to status bar
6.Change window location
7.Open a new window and load new page
8.Set text for windows status bar
9.References to Window Objects
10.A Main Window Document
11.X/Y Marks the Spot for a popup window (IE)