Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script type = "text/javascript">
- function myfunction(){
- if ('baobao'.match('([a-z])+')){
- alert "that's right";
- }
- else {
- alert "that's wrong"
- }
- }
- </script>
- </head>
- <body>
- <form>
- <input type="button" value = "clickhere" onclick="myfunction()" >
- </form>
- </body>
- </html>
Add Comment
Please, Sign In to add comment