-
1. Re: How do I position a new browser window?
hans-g. Feb 2, 2010 5:10 AM (in response to Vixter101)Hi Vixter101,
so it should work. Notice the red highlighted text passages, and build the code between these bodies:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>How do I position a new browser window?</title>
</head>
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
if(window.screen)if(isCenter)if(isCenter=="true"){
var myLeft = (screen.width-myWidth)/2;
var myTop = (screen.height-myHeight)/2;
features+=(features!='')?',':'';
features+=',left='+myLeft+',top='+myTop;
}
window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+m yHeight);
}
//-->
</script><body>
<body bgcolor="#FFFFFF" text="#000000" onLoad="MM_openBrWindow('/http://forums.adobe.com/thread/568344?tstart=0','Test','toolbar=yes,status=yes','600','400 ','true')">
</body>
</html>Hans-G.
-
2. Re: How do I position a new browser window?
Vixter101 Feb 2, 2010 1:59 PM (in response to hans-g.)Thanks, Hans. I've been looking at the code. I wish I knew more about code. Is there a way to make the new window be centered without having to use code? For example, can I center the window using a command in Design View (in Dreamweaver)?
Thanks again!
-
3. Re: How do I position a new browser window?
Nancy O. Feb 2, 2010 2:52 PM (in response to Vixter101)I wish I knew more about code. Is there a way to make the new window be centered without having to use code? For example, can I center the window using a command in Design View (in Dreamweaver)?
Working in Design View alone is like trying to paint a picture with both hands tied behind your back and a paintbrush clenched between your teeth. Very limited.
Solution: spend a few days learning basic HTML and CSS code. Use Split View so you can see the code DW generates for you.
HTML & CSS Tutorials - http://w3schools.com/
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com



