Home / Admin / Dynamic Monsterlinks By Class Name
Duplicate Snippet

Embed Snippet on Your Site

Dynamic Monsterlinks By Class Name

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