Hi, all:
I want to know how to determine layout already is finished if Javascript 
changed DOM tree. For example,

<html>
<script language="javascript">
function removeText()
{
 var tt= document.getElementById("text_1");
 var parent = tt.parentNode;
parent.removeChild(tt);
}
</script>
<body>
<div>
<input type="text" id="text_1" name="name" >
 <input type="button" name="btn_1" value="remove text" onclick ="removeText();">
</div>
</body>
</html>

after clicked "remove text" button, text input was removed. So DOm tree already 
was changed ,mozilla must do re-layout. At the time, how know re-layout was 
finished?
Whether or not a event or message will be sent out?



Xu Jianbin
2008-05-07
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to