title: How to disable Pop Up in javascript
body: <p>I am new to Javascript. My req is to not show the pop up if i get list from server side as empty list. Before this requirement i was doing something like below code where as soon as user hits the URL, the popup comes as i have used window.onload . Now the requirement got changed and i need to show pop up only when there is some data from backend. Please help me on this.</p>
  
  <pre><code>&lt;script&gt;
      window.onload = function () {
          $('#homePopup').bPopup({
              easing: 'easeOutBack', //uses jQuery easing plugin
              speed: 550,
              transition: 'slideDown'
          })
      }
  &lt;/script&gt;
  
  &lt;div id="homePopup"&gt;&lt;span class="buttonCloseModal b-close"&gt;&lt;span&gt;X&lt;/span&gt;&lt;/span&gt;
    &lt;h1&gt;Notifications&lt;/h1&gt;
  
  &lt;div class="ListContainerScroll"&gt;
          &lt;div&gt;
                 &lt;asp:Repeater ID="rptrNotification" runat="server" OnItemDataBound="rptrNotification_ItemDataBound"&gt;
                          &lt;ItemTemplate&gt;
                                &lt;div&gt;
                                      &lt;asp:Literal ID="litNotificationTitle" runat="server" Text='&lt;%# Bind("Title") %&gt;'&gt;&lt;/asp:Literal&gt;
                                &lt;/div&gt;
                                 &lt;div&gt;
                                       &lt;asp:Literal ID="litNotificationDesc" runat="server" Text='&lt;%# ((SPListItem)Container.DataItem)["NotificationDescription"] %&gt;'&gt;&lt;/asp:Literal&gt;
                                 &lt;/div&gt;
                           &lt;/ItemTemplate&gt;
                 &lt;/asp:Repeater&gt;
                      &lt;div class="noDataAvailable" runat="server" id="divNoDataAvailable" visible="false"&gt;&lt;/div&gt;
          &lt;/div&gt;
     &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I am doing this code in .ascx</p>