user656925
user656925

Reputation:

Implementing a pop up window

Implementing centering feature for image downloads - Pop Up Window

I posted here asking a coding question on face recognition. How do you get an x by y image to an x by x image. The answer was easy let the user do it, this is how facebook does it. I want to implement this as well.

The user uploads the image durring a one step sign up. I want a pop up window to ask the user to center the image before taking them to the start screen. How do I implement a pop up window with out using libraries?

Upvotes: 1

Views: 485

Answers (1)

Eddy Freddy
Eddy Freddy

Reputation: 1816

Is there a life without jQuery? Yes it is!

<script type="text/javascript">
function popup (url) {
  var yourwindow = window.open(url, "PopupwindowName", "width=400,height=300,resizable=yes");
  yourwindow.focus();
  return false;
}
</script>

call:
<a href="popup.htm" target="_blank" onclick="return popup(this.href);">show popup</a>

Upvotes: 1

Related Questions