I try to develop a chrome Extension, that logs your Browser History. I already have a Javascript function, that only needs to be executed, whenever a site is loaded. How can I do this? I cannot find anything about this on Internet please help.
Thank you.
In html:
<element onload="yourFunction()">
In javascript
window.onload = function() {
yourFunction(); };