Method 1:
Copy code The code is as follows:
echo "<script>alert('prompt content')< /script>";<br>
</div>
<br>Method 2: <br><div class="codetitle">
<span style="CURSOR: pointer" onclick="doCopy('code15882')"><u>Copy the code</u></span> The code is as follows:</div>
<div class="codebody" id="code15882">
<br>echo '<script language="JavaScript">;alert("This is the location inside ";location.href="index.htm";</script>;';
. href="index.htm" indicates the page you will redirect to after clicking the OK button in the message box. Just remove it if you don't need to!
http://www.bkjia.com/PHPjc/621683.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/621683.htmlTechArticleMethod one: Copy the code as follows: echo "scriptalert('prompt content')/script"; Method two: Copy the code as follows: echo 'script language="JavaScript";alert("This is";location...