Nothing wrong with your code, works fine in IE 7 here:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
</script>
</head>
<body>
<a href="http://www.google.com/" onclick="NewWindow(this.href,'name','936','620','no');return false">test</a>
</body>
</html>
Might be some setting(s) you have on your copy of IE 7. Under Vista, the default settings may be more restrictive. In other Windows OS's you can just reset to the defaults. This may also work in Vista.
Bookmarks