I had a page that does some event setup on window.onload:
function prepEvents()
{
document.getEle mentById("menum ap_sales").onmo useover =
swapMenuSales;
// etc
}
window.onload = prepEvents;
worked great, until the page where this javascript src is loaded now
contains an iframe. It seems that the document.getEle mentById() call
is returning null now. If I remove the iframe, it all works again.
Presumably it's something to do with having multiple documents now,
but how do I access the one I want?
Thanks for your help!
Andy C
function prepEvents()
{
document.getEle mentById("menum ap_sales").onmo useover =
swapMenuSales;
// etc
}
window.onload = prepEvents;
worked great, until the page where this javascript src is loaded now
contains an iframe. It seems that the document.getEle mentById() call
is returning null now. If I remove the iframe, it all works again.
Presumably it's something to do with having multiple documents now,
but how do I access the one I want?
Thanks for your help!
Andy C
Comment