put this in an onload.html file (a w3schools modified example):
<html>
<head>
<script type="text/javascript">
function aload()
{
var d = new Object();
d.onload = func1;
d = document.implementation.createDocument("","",null);
d.onload=func2;
d.load("note.xml");
d.onload=func3;
document.getElementsByTagName("p")[1].innerHTML="Page is loaded. ";
var x = document.createElement("p");
document.body.appendChild(x);
x.innerHTML="Paragraph";
//document.onload=alert("And me too!");
}
function func1(){alert("A1");}
function func2(){alert("A2");}
function func3(){alert("A3");}
function loadfunc(){document.onload=func1; alert("loadfunc");}
</script>
</head>

<body onload="loadfunc();">

<p onclick="aload()">First paragraph</p>
<p>Second paragraph</p>
</body>

</html>

put this in a note.xml file in the same folder (also w3schools):
<note time="12:03:46">
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>

open page, click on first paragraph, ok.
put a break on line 13, click on first paragraph, alert is not
displayed. Why?

Win XP, Firefox last version

if you could also enlighten me why is "A3" instead of "A2" displayed
in the alert, that would be of great help :-).

Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to