title: Customized popup window in javascript
body: <p>I need to open a popup, after checking a condition in javascript. I was trying to customize the popup window.</p>
  
  <p>I used </p>
  
  <pre><code>function fun()
  {
    if() {
       window.open('name.jsp','Popup','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=420,height=400,left=430,top=23');
    }
    else {
    }
  }
  </code></pre>
  
  <p>But I needed a pop like what I have given below. 
  Is it possible in javascript. 
  image 1: what I am getting
  image 2: what is needed.</p>
  
  <p><img src="https://i.stack.imgur.com/j76Qv.jpg" alt="What is getting">       <img src="https://i.stack.imgur.com/YYjf4.jpg" alt="What is needed"></p>