Alert Javascript Php Code Example


Example 1: alert in php

echo '<script>alert("Message")</script>';

Example 2: show alert in php

echo '<script language="javascript">alert("juas");</script>';

Example 3: alert in php

// This is in the PHP file and sends a Javascript alert to the client $message = "Something"; echo "<script type='text/javascript'>alert('$message');</script>";

Example 4: alert js in php

javascript:alert('Email enviado com Sucesso!'); javascript:window.location='index.php';

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android SDK Location Should Not Contain Whitespace, As This Cause Problems With NDK Tools