title: Javascript Alert Box IN PHP . Remove the Gray/White Background when Alert POPS up
body: <p>Now what I got here is the script to alert "You have logged in successfully" after correct login information upon filling up the form at index.php...</p>
  
  <p>In my check_login.php these are the scripts...
  So far</p>
  
  <pre><code>if($count['user_type']== "agent"){
  
  session_register("myusername");
  session_register("mypassword");
  
  echo '&lt;script type="text/javascript"&gt;window.onload = function() {
  alert("You have logged in successfully!\n");}&lt;/script&gt;';
  echo "&lt;meta http-equiv=\"refresh\" content=\"0;URL=pages/agent.php\"&gt;";
  exit();
  //header("location:pages/agent.php");
  }
  if ($count['user_type']== "moderator"){
  
  session_register("myusername");
  session_register("mypassword");
  header("location:pages/moderator.php"); 
  }
  else {
  echo "&lt;script type='text/javascript'&gt;alert('Invalid Login! Please Try Again!');&lt;/script&gt;";
  echo "&lt;meta http-equiv=\"refresh\" content=\"0;URL=index.php\"&gt;";
  }
  </code></pre>
  
  <p>The alert box is totally working but.. I want it to pop up while the background is still visible (index.php) and after clicking OK... it will redirect into a page which is from my code --> to "agent.php"</p>
  
  <p>I used</p>
  
  <pre><code>echo "&lt;meta http-equiv=\"refresh\" content=\"0;URL=pages/agent.php\"&gt;";
  </code></pre>
  
  <p>to redirect a successful logged in user..</p>
  
  <p>But before the redirection process... I want the user to see an alert box.</p>
  
  <p>My point is, how can I make the alert box pop up itself while the background is still visible. I noticed that in Firefox it is in Gray bg while in Chrome and so on... the bg is white...</p>
  
  <p>Please Help. Thanks in Advance :|</p>