亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

JavaScript text box content change event (onchange)

Text box content change event (onchange)


The onchange event is triggered by changing the content of the text box, and the called program is executed at the same time.

The following code, when the user changes the text in the text box, a dialog box "You have just modified your personal profile" will pop up.

<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>php.cn</title>
        <script>
            function fun(){
                window.alert("您剛剛修改了個人簡介")
            } 
        </script>
    </head>
    <body>
        <form>
            個性介紹:<br/><textarea name=" introduction" cols="30" rows="4" onchange="fun()">小明:
            PHP高級工程師
            全棧工程師</textarea>
        </form>
    </body>
</html>


Continuing Learning
||
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>php.cn</title> <script> function fun(){ window.alert("您剛剛修改了個人簡介") } </script> </head> <body> <form> 個性介紹:<br/><textarea name=" introduction" cols="30" rows="4" onchange="fun()">小明: PHP高級工程師 全棧工程師</textarea> </form> </body> </html>
submitReset Code