Reputation: 49
I'm trying to create a javascript that opens the option of adding a chrome extension when the page is loading. I have this script below. What am I doing wrong, it does not work?
<script>
function onPageLoad(event)
{
javascript:chrome.webstore.install();
}
document.addEventListener("DOMContentLoaded", onPageLoad, true);
</script>
Upvotes: 0
Views: 81