0
What way a IFRAME or EMBED can be dynamically created with HREF clicked at that given moment, opening the object with its URL of that link on which it was triggered via mouse click.
Code
<body>
<a href="/questions/ask" onclick="abrir(this.href); return false;">Clique</a>
<hr>
<span id="exibir"></span>
</body>
<script language="JavaScript">
function abrir(URL) {
obj = document.createElement("embed");
obj.setAttribute("src","'+URL+'");
obj.style.width = 240+"px";
obj.style.height = 180+"px";
document.getElementById('exibir').appendChild(obj);
}
</script>
It remains to make the script capture the setAttribute’s
<a href='http://answall.com'>
moving on to thesetAttribute("src","");
indexing it in the"src",""
.
Does anyone have any idea how to get this?
I was taking a look at the questions I’ve already asked here Sopt, and I noticed that I had not given the deserved Vow in this your answer. Forgive me for the distraction from not voting in time ago when I needed the answer. But anyway, you answered me then deserved it. rsrs
– Diego Henrique
You’re welcome @Diegohenrique. Thank you
– Miguel