1
I need to automate the action of a button click for some script (Javascript), could help me?
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body class="glitch-transition">
<main class="cd-main-content">
<div class="center">
<a href="#modal-1" class="cd-btn cd-modal-trigger">BOTÃO</a>
</div>
</main>
<div class="cd-modal" id="modal-1">
<img src="img/imagem.png" />
</div> <!-- .cd-modal -->
<div class="cd-transition-layer" data-frame="25">
<div class="bg-layer"></div>
</div> <!-- .cd-transition-layer -->
<script src="js/modernizr.js"></script> <!-- Modernizr -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
</script>
<script src="js/main.js"></script> <!-- Resource jQuery -->
</body>
</html>
See if that one question helps you
– Zulian
I think I expressed myself badly, in fact, I do not know how to make the script work automatically, without going through the click of the button, in fact, when the page is loaded, it is necessary to run automatically this click of the button to which appears on the line <a href="#modal-1" class="cd-btn cd-modal-Trigger">BUTTON</a> I don’t know how to do this. I’ve studied some codes and nothing.
– user33011
It would help to put Javascript code
– Renato Junior