Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- First add class to section. Class name is clickable,
- then inset HTML directly into the seciton
- <script>
- document.getElementById
- ("clickable").onclick = myFunction;
- function myFunction(){
- window.open("#", "_blank");
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement