From mohamed, 1 Year ago, written in HTML5.
Embed
  1.       <html>
  2.           <head>
  3.  
  4.              <title>
  5.  
  6.              wellcome in my zeft
  7.  
  8.                  </title>
  9.  
  10.  
  11.            </head>
  12.  
  13.            <body>
  14.  
  15.            <p> plz enter your numper enf : </p>
  16.  
  17.  
  18.            #my change is here ^_^
  19.            <input id="txt" type="text" name="txt1""
  20. onkeypress="if(this.value.match(/\D/)) this.value=this.value.replace(/\D/g,'')"
  21. onkeyup   ="if(this.value.match(/\D/)) this.value=this.value.replace(/\D/g,'')">
  22.  
  23.            <button onclick="func()">click me</button>
  24.  
  25.            <p id='xss'> </p>
  26.  
  27.            <script>
  28.  
  29.            function func()
  30.            {
  31.             var mess,x;
  32.             mess = document.getElementById('xss');
  33.             mess.innerHTML="";
  34.             x = document.getElementById('txt').value
  35.  
  36.             try
  37.             {
  38.               if ( x == "" ) throw "da embty ya 7omar -_-";
  39.               if (isNaN(x)) throw "alah y7'reb betak ya she7'";
  40.               if (x>10) throw"el raqam 3aly awe";
  41.               if (x<5) throw "waty awe ";
  42.            }
  43.            catch (error)
  44.            {
  45.              mess.innerHTML= "da el error ya 7aywan " + " "+error;
  46.            }
  47.            finally
  48.            {
  49.              document.getElementById("txt").value="";
  50.            }
  51.           }
  52.  
  53.  
  54.           </script>
  55.  
  56.            </body>
  57.       </html>
  58. <!--
  59. Reply to "Untitled"
  60. Author
  61. Title
  62. Language
  63. Your paste - Paste your paste here
  64. &lt;html&gt;
  65.  &lt;head&gt;
  66.  
  67.     &lt;title&gt;
  68.  
  69.     wellcome in my zeft
  70.  
  71.   &lt;/title&gt;
  72.  
  73.  
  74.   &lt;/head&gt;
  75.  
  76.   &lt;body&gt;
  77.  
  78.   &lt;p&gt; plz enter your numper enf : &lt;/p&gt;
  79.  
  80.   &lt;input id=&quot;txt&quot; type=&quot;text&quot; name=&quot;txt1&quot;&gt;
  81.  
  82.   &lt;button onclick=&quot;func()&quot;&gt;click me&lt;/button&gt;
  83.  
  84.   &lt;p id='xss'&gt; &lt;/p&gt;
  85.  
  86.   &lt;script&gt;
  87.  
  88.   function func()
  89.   {
  90.    var mess,x;
  91.    mess = document.getElementById('xss');
  92.    mess.innerHTML=&quot;&quot;;
  93.    x = document.getElementById('txt').value
  94.  
  95.    try
  96.    {
  97.      if (x==&quot;&quot;) throw &quot;da embty ya 7omar -_-&quot;;
  98.      if (isNaN(x)) throw &quot;alah y7'reb betak ya she7'&quot;;
  99.      if (x&gt;10) throw&quot;el raqam 3aly awe&quot;;
  100.      if (x&lt;5) throw &quot;waty awe &quot;;
  101.    }
  102.    catch (error)
  103.    {
  104.      mess.innerHTML= &quot;da el error ya 7aywan &quot; + &quot; &quot;+error;
  105.    }
  106.    finally
  107.    {
  108.      document.getElementById(&quot;txt&quot;).value=&quot;&quot;;
  109.    }
  110.   }
  111.  
  112.  
  113.   &lt;/script&gt;
  114.  
  115.   &lt;/body&gt;
  116. &lt;/html&gt;
  117. Create Shorturl - Create a shorter url that redirects to your paste?
  118. Private - Private paste aren't shown in recent listings.
  119. Delete After - When should we delete your paste?
  120. Spam protection - Type in the letters
  121. captcha
  122.  
  123. Suggestions? Problems?
  124. Contact: hello@pastecode.xyz -->
  125.