I learn JavaScript now, and encounter with next problem: I have page with some frames, and I want to load some page into one of specified frames; But code below does not do what I want.
Could you suggest please how could I load any url into specified frame?
//"use strict";
function print(str) {
  document.write("<p><pre>" + str + "</pre></p>");
}
window.open("http://www.google.com", "topFrame");<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="utf-8" />
  <title>Frameset Example</title>
</head>
<frameset rows="160,*">
  <frame name="topFrame">
    <frameset cols="50%,50%">
      <frame name="leftFrame">
        <frame name="rightFrame">
    </frameset>
</frameset>
<body>
</body>
</html> 
     
    