Coding Cookbook/Pop-up Window

From Wikibooks, open books for an open world
Jump to: navigation, search

JavaScript solution[edit]

<a href='popup.htm' onClick='
  winPopup = window.open (this.href, "idPopup", "status=0,resizable=1,scrollbars=1");
  if (winPopup && !winPopup.closed) winPopup.focus();
  return false;'
  >pop-up</a>