div 50 * 50px, every second, changes coordinates (randomly), and when clicked (hit), div will enter an account
need JS code (without jQuery)
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> .block{ width: 50px; height: 50px; background: red; position: absolute; top: 0 left: 0; } h1{ text-align: center; } </style> </head> <body> <h1>Ваш счёт:</h1> <div class="block"></div> <script> </script> </body> </html>