Window open with custom dimension


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function openWindow(url,w,h,sb) {
  2. newWindow = window.open(url, '', 'width='+w+'px,height='+h+'px,left=0,top=0,resizable=1,scrollbars='+sb);
  3. newWindow.focus();
  4. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.