Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

275
Views
Changing text when clicking button

I have set up an event Listener and I want it so that when I click, the text in the middle changes from "Bubble" to "Bounce".

whole code:

document.getElementById("text").innerHTML = "Bubble";
document.addEventListener("click", next);

function next() {
  document.getElementById("text").innerHTML = "Bounce"
}
section {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #1F69FA;
  display: flex;
  justify-content: center;
  align-items: center;
}

section h2 {
  font-size: 10em;
  color: #333;
  margin: 0 auto;
  text-align: center;
  font-family: consolas;
}
<section>
  <h2 id="text"></h2>
</section>

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!