I want to click a div or actually an iframe, and when i click the iframe i want to get the same content of that iframe to another iframe i got. I tried it like this but it will not work for me..
var leser = document.getElementById("leser");
var leser2 = document.getElementById("leser2");
var leser1 = document.getElementById("leser1");
leser.addEventListener("click", activateLeser);
function activateLeser() {
leser1.innerHTML = leser.innerHtmL;
}
HTML code for the iframes:
<div id="leser1">
<iframe src="https://opskins.com/?loc=good_deals&sort=n&app=433850_1"></iframe>
<div id="leser">
<iframe src="https://opskins.com/?loc=shop_view_item&item=69274922&uid=76561198258576267"></iframe>
<div id="leser2">
<iframe src="https://opskins.com/?loc=shop_search&sort=lh&app=433850_1&search_item=%22Skin:%20All%20American%20Face%20Bandana%22"></iframe>