var m = document.getElementById('mainframeset');
m.appendChild(newFrame);
inserts a frame inside a frameset as last frame.
What I want here is to insert the frame as the first frame. Something like this :frameSet[0].insertBefore(newframe, frameSet[0].document.frames[0]);
开发者_开发问答
It doesn't work,though.
Thaks
frameSet[0].insertBefore(newframe, frameSet[0].firstChild);
精彩评论