I've been trying to load an external file into a layer with the
following lines of code. Can anyone help out?

var obj = document.getElementById("divlayer");
obj.innerHTML = document.frames['nameframe'].document.body.innerHTML;
obj.document.frames[nameframe].document.location = newurl

Thanx in advance.