thanks a lot.
the problem was that alert(temp[1]) showed a string. i was thinking that temp[1] was not representing a node object when i was removing it.
thanks again.
Hi there.
Iam facing a very strange problem.
starting with the code:
<html>
<script language = 'javascript'>
function init(){
var x = window.document.getElementById("z");
var temp = x.getElementsByTagName("a");
x.removeChild(temp[1]);
}
</script>
<body onload = "init();">
<div id = "z">...
var headID = window.document.getElementsByTagName("HEAD")[0];
var newScript = window.document.createElement("SCRIPT");
newScript.type = "text/javascript";
newScript.src = "teste.js";
headID.appendChild(newScript);
alert(3);
this is my code. the "teste.js" just have an...
hi there.
Is there any way of loading dynamically a script and wait for him to load?
I am using google api but i just want to load the script when i press a button but i need for the script to load to continue processing.
thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.