View Full Version : alert()

04-08-2010, 03:04 AM
I have the following code:

<script type="text/javascript">
alert("This picture has received more then 10 down votes so it is now being deleted. You will be redirected back to the pictures page!");
echo "<meta http-equiv=\"refresh\" content=\"2;url=http://website.com/pictures.php\">";

This is just in the code. I thought it would just execute this but it doesn't. I can't have it appear on a button event or an onload since this snipped gets executed with AJAX. How can I make it appear?

Thanks in advance!

04-08-2010, 03:24 AM
The weird thing is if I just put it in a HTML page, the alert works fine. Not sure why it won't work how I have it set up now.

04-08-2010, 09:29 AM
sorry, but I don’t understand the problem, can you elaborate?