HTML & JS website flashing

My code:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.2/p5.js"></script>
    <script src="main.js"></script>
    <link rel="stylesheet" href="style.css">
    <link rel="stylesheet" href="https://use.typekit.net/nyy2ryd.css">
</head>
<body onload="draw();">
    <div class="body">
    <h1>webOJIS</h1>
    <h3><b>All about emojis!</b></h3>
    <h4>Have Questions? Enter some things you want to know!</h4>
    <form onsubmit="GetQ()">
        <input type="text" id="Q" placeholder="Q:">
    </form>
    <h4 id="A">A:</h4>
<script>

function GetQ(){
    var input = document.getElementById("Q");
    if(input.value == "Emoji"){
        document.getElementById("A").innerHTML = "Emjois are a text base culturistic image; Made in Japan";
    }
}</script>
</div>
</body>
</html>

Every time I type “Emoji” inside of the Q: input; I seems it just shows the .innerHTML text, For not a long time.
Why is this flashing?

2 Likes

Note that the p5.js is used, But not shown; And Working