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