How do I make this script work on my blogger

Asked

Viewed 373 times

0

I want to make this javascript work on my blogger .

his link is :https://jsfiddle.net/xuuj2qv4/

what do I do to make this system work on my blogger?

1 answer

0


I believe you should insert at the end of the HTML code a script tag, with the javascript code inside, e.g.:

<script>
var button = document.querySelector(".b1");
var button2 = document.querySelector(".b2");

button.onclick = function() {
 window.open('www.google.com', '_blank');
 button2.style.display = "block";}
</script>
  • thank you very much!!!!!!!!!!

  • @Minelopsml this answer was the solution to your question? So you can accept it, this is the best way to say thank you on the site

  • you don’t have that option here

Browser other questions tagged

You are not signed in. Login or sign up in order to post.