0
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

2
  • frameSet[0].insertBefore(newframe, frameSet[0].firstChild); does not help? Commented Sep 6, 2011 at 9:56
  • Hi, Great....it worked it worked it worked.....hohohoho... Post this as answer so that I could accept it.I knocked myself out searching for it.Thanks a lot man.Any book suggestion for javascript. Commented Sep 6, 2011 at 10:03

1 Answer 1

2
frameSet[0].insertBefore(newframe, frameSet[0].firstChild);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.