...

View Full Version : Customizing Windows



zypher
12-30-2003, 07:27 PM
When a user clicks a certain link I would like a window to pop up that would have no buttons or address bar in it. Also I would like to customize the window size (height, width). Any ideas how I would approach this?

Thanks,

- ZYPHER :thumbsup:

COBOLdinosaur
12-30-2003, 10:11 PM
In the page you want to launch the popup from:

<html>
<head>
<title> launch popup </title>
<script language="JavaScript">
<!--
function dopopup(url)
{
var chrome= "width=377,"
+ "height=483,"
+ "location=0,"
+ "menubar=0,"
+ "resizable=0,"
+ "scrollbars=0,"
+ "status=0,"
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "left=100,"
+ "top=100";
x=window.open(url,null,chrome);
x.parent.document.title="Anything you want";
}
//-->
</script>
</head>
<body>
<a href="#" onClick"dopopup("mynewpage.htm");x.focus();">

</body>
</html>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum