Blogger Information
Blog 12
fans 0
comment 0
visits 9382
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
[小案例]带有敏感词过滤的留言板
PHP全栈60天VIP大牛作业题
Original
951 people have browsed it
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
 content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>留言板</title>
    <script>
       window.onload = filter_words;
        function filter_words (){
            var words = document.getElementsByName('textarea')[0];
            var btn = document.getElementsByName('button')[0];
            btn.onclick = function () {
                alert(words.value);
            }
        }
    </script>
</head>
<body>
<h3>留言板</h3>
<textarea name="name" cols="40" rows="10"></textarea>
<br>
<button type="button" name="button">提交</button>
</body>
</html>

一定要在PHPStudy根目录下使用

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post