logo       

Re: is there something special about newDoc ?: msg#00027

mozilla.devel.dom

Subject: Re: is there something special about newDoc ?

Sorry it was my mistake

I had forgotten that it was necessary to attach my onload event to the
document variable
in the document in frame[0]


xuldoc.frames[0].newDoc.addEventListener("load",function (){x(y)}, true);



"Martin Honnen" <mahotrash@xxxxxxxx> wrote in message
news:ck8qak$4i11@xxxxxxxxxxxxxxxxxxxxxx
>
>
> rvj wrote:
>
> > Am I correct in thinking that newDoc is the ONLY acceptable variable
name
> > within an HTML docs?
> >
> > var newDoc = document.implementation.createDocument("", "",
null);
>
> I don't think there is anything special about the variable name newDoc.
>
> > If I attempt to use any other variable name some kind of error is
generated
> > ???
>
> What error do you get exactly?
>
>
>
> --
>
> Martin Honnen
> http://JavaScript.FAQTs.com/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise