* 새창 띄우고 이동시키기


<script>
var w = window.open("", "mail_preview", "width=700,height=600,scrollbars=1,resizable=1,status=0");
w.focus();
w.location.href = 'http://www.google.com';
</script>





* 새창 띄우고 내용 채워넣기

<script>
var w = window.open("", "mail_preview", "width=700,height=600,scrollbars=1,resizable=1,status=0");
w.focus();
w.document.open();
w.document.write('<span style="color:#EF00CD">내용입니다.</span>');
w.document.close();
</script>




Posted by bloodguy
,