Which of the following is a correct way in JavaScript to target the second frame in a frames array, assuming the name of the frame is "b"?
parent.b.location.href = "new.htm";
parent.frames[1].location.href = "new.htm"; or parent.b.location.hre = "new.htm";
parent.frames[1].location.href = "new.htm";
parent.frames[1].URL.href = "new.htm";
Submit