php - Pop up window on page load -
i want create pop window text box , appear whenever redirected page. found code w3schools there have click try button pop -up window appears.
here code
<!doctype html> <html> <body> <p>click button demonstrate prompt box.</p> <button onclick="myfunction()">try it</button>
<script> function myfunction() { var person = prompt("please enter name", "harry potter"); if (person != null) { document.getelementbyid("demo").innerhtml = "hello " + person + "! how today?"; } } </script> </body> </html>
replace <body>
<body onload='myfunction()'>
.
Comments
Post a Comment