title: Popup window for Ruby on rails
body: <p>I have javascript for Popup as POPUP.JS</p>
  
  <p>In my view i want to use the popup</p>
  
  <pre><code> &lt;%= link_to "Start" , answer_exam_group_answers_path(@exam_group), :class =&gt; "submit_button", :popup =&gt; ['exam_dialog','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,fullscren=yes,resizable=no']%&gt;
  </code></pre>
  
  <p>It displayed as HTML</p>
  
  <pre><code>&lt;a href="/exam_groups/1/answers/answer" class="submit_button" onclick="window.open(this.href,'exam_dialog','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,fullscren=yes,resizable=no');return false;"&gt;Start&lt;/a&gt;
  </code></pre>
  
  <p>But i need that HTML as </p>
  
  <pre><code>&lt;a href="/online_student_exam/start_exam/1743" class="user_button" onclick="this.hide();window.open(this.href,'exam_dialog','toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=no');return false;" style="display: none;"&gt; ? Start Exam&lt;/a&gt;
  </code></pre>
  
  <p>Can anyone help for the syntax for this.hide() ans  ? Start Exam</p>