nuklehed, ofcourse i'm linking from another page. Here is the java code which opens the java window.
<script language=\"javascript\">
var win = null;
function Download(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>
and the html code:
<a href=\"http://www.site.com/test.php\" onclick=\"Download(this.href,'name','330','170','no');return false\">test</a>
using the code you posted before just opening up a new window (target=_blank) it works fine, but when using this java code it doesn't work.