Html forms
Ok guys i made an inpur bar for name inputs with the form tag on html and i want it to calculate and return some thing after i inputted my name but the problem is it tryes to go to othet websites Here is the code below and +"what should i do??"; <link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css"> <head> <style> h1{ font-family:Lobster; } </style> </head> <body bgcolor="pink"> <h1>LOVE CALCULATOR</h1> <form> <i><b>your name:</b></i><br> <input id="demo" type="text" name="your name"><br> <i><b>your loves name:</b></i><br> <input id="demo2" type="text" name="your loves name"><br> <button class="button1"onclick="cal()"><b>calculate</b></button> <p><b> made by immortal soul don't forget to upvote</b></p> <script type="text/javascript"> var a=document.getElementById("demo"); var b=document.getElementById("demo2"); function cal(){ return a.length*b.length*4+"%" } </script> </body </html>