Home / Admin / dynamic-monsterlinks-by-class-name.js
Duplicate Snippet

Embed Snippet on Your Site

dynamic-monsterlinks-by-class-name.js

Code Preview
js
// Target by class name
window.onload = function(){
	const dynamicMonsterLinks = document.querySelectorAll("a.myClass");
	dynamicMonsterLinks.forEach(dynamicMonsterLinks => dynamicMonsterLinks.href = "MONSTERLINK_URL");
}

Comments

Add a Comment