Advertisement
RashedBQ

for example Pop-up boxes

Oct 11th, 2021
68
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2. function show_prompt() {
  3. var name=prompt("الرجاء ادخل اسمك هنا","محمد");
  4.   var age=prompt("الرجاء ادخل عمرك");
  5. if (name!=null && name!="" && age!=null && age!="") {
  6. document.write("<p>مرحباً بك " + name + " , كيف حالك اليوم؟</p>");
  7.   document.write("<p> " + age + " عمرك</p>");
  8. }
  9. }
  10.  
  11. </script>
  12.  
  13. <input type="button" onclick="show_prompt()" value="اضغط هنا" />
Advertisement
RAW Paste Data Copied
Advertisement