SHARE
TWEET

Untitled

a guest Mar 24th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <title>Delete Spaces</title>
  5.     </head>
  6.     <style>
  7.         #container
  8.         {
  9.             padding: 10px;
  10.             border: 1px solid black;
  11.         }
  12.         #container input
  13.         {
  14.             width:500px;
  15.         }
  16.     </style>
  17.     <body>
  18.         <div id="container">
  19.         <form action="#" method="get" onclick="genarate('withoutspaces')">
  20.             <input type="text" id="withoutspaces" name="hidden" value=""/><br />
  21.             <input type="button" name="submit" value="Convert"/>
  22.         </form>
  23.         </div>
  24.     </body>
  25.     <script type="text/javascript">
  26.            function genarate(withoutspaces){
  27.               var field = document.getElementById(withoutspaces);
  28.               var get = document.getElementById(withoutspaces).value;
  29.               field.value = get.replace(/ /g,'');
  30.               e.preventDefault();
  31.             }
  32.     </script>
  33. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top