title: How to write a pop-up window in javascript
body: <p>I need to create a pop-up window like this one:<br>
  <a href="http://gyazo.com/48a138b2e40fda7e5e72acd1b653a518" rel="nofollow">http://gyazo.com/48a138b2e40fda7e5e72acd1b653a518</a>
  in JavaScript.</p>
  
  <p>When the administrator clicks on <code>Delete</code> link one parameter should be passed to JavaScript on-click function. </p>
  
  <p>How can I bind different actions to OK and Cancel buttons ? 
  My actions are like this one below:</p>
  
  <pre><code>&lt;a href="&lt;c:url value="/Invalidate.do?val=INVALIDATE"/&gt;"&gt;Logout&lt;/a&gt;
  </code></pre>
  
  <p>Could anyone help me writing this piece of code (complete on-click function)? 
  It would be great if you also show me how to attach this on-click to my link.</p>
  
  <p>Thanks in advance</p>