Search
 
SCRIPT & CODE EXAMPLE
 

HTML

get element by id and add onlick

HTML

<button id="go-back">Go back!</button>

JavaScript

document.getElementById('go-back').addEventListener('click', () => {
  history.back();
});
Comment

PREVIOUS NEXT
Code Example
Html :: geolocalizacion html5 
Html :: add link to text using span html 
Html :: Creating Github logo with CSS 
Html :: buttosn html 
Html :: how to turn og suggensttions in html input 
Html :: fix character wpf missing 
Html :: html entity decode in sql query 
Html :: ubuntu 19.10 vmware 
Html :: show title combox check box wpf 
Html :: loading page html 
Html :: html5 use of section tag in onepage template 
Html :: Adding multiple audio content in HTML5 
Html :: how to create a video link in html 
Html :: how to make a html tag in html 
Html :: html div syntax 
Html :: div class wrapper html 
Html :: cuales son los elementos bloque y los elementos linea html 
Html :: signature template html 
Css :: css center element on screen 
Css :: png shadow css 
Css :: disable click css 
Css :: css hide div on mobile 
Css :: text truncate after 3 lines 
Css :: center h1 css 
Css :: 2 lines paragraph 
Css :: remove the glow in bootstrap input 
Css :: ajouter une image dans un before after 
Css :: css transform duration 
Css :: css make something always on top 
Css :: span nowrap 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =