title: Display div on page load having style display:none
body: <p>I want to display div on page load e.g."campaign-alert", but I am not able to do this .</p>
  
  <p>This is sample code :</p>
  
  <pre><code>&lt;div id="popup"&gt; 
  &lt;div id="campaign-alert" style="display:none;"&gt;
  .
  .
  .
  
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I have tried this way as well : </p>
  
  <pre><code>document.getElementById('campaign-alert').style.display="";                  
  document.getElementById('campaign-alert').style.display="block";
  </code></pre>
  
  <p>Can anybody help me in this ?</p>