Guest User

Untitled

a guest
May 27th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. <html>
  2. <head>
  3. <script type = "text/javascript">
  4. function myfunction(){
  5. if ('baobao'.match('([a-z])+')){
  6. alert "that's right";
  7. }
  8. else {
  9. alert "that's wrong"
  10. }
  11. }
  12. </script>
  13. </head>
  14. <body>
  15. <form>
  16. <input type="button" value = "clickhere" onclick="myfunction()" >
  17. </form>
  18. </body>
  19. </html>
Add Comment
Please, Sign In to add comment