ealexseen,
<a href="#" onclick="newMyWindow('http://javascript.ru/')">Test</a>
<script>
function newMyWindow(e) {
var h = window.outerHeight,
w = window.outerWidth;
window.open(e, '', 'scrollbars=1, ' + 'height=' + h + ',' + 'width='+ w);
}
</script>