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

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -