<button onclick="top.frames.left_frm.document.all.menu_item.innerText='你点击了按钮';">

解决方案 »

  1.   

    1. frame.html:
    <frameset cols="200,*">
    <frame name="nav" src="nav.html">
    <frame name="main" src="list.html">
    </frameset>2. nav.html:
    <a href="javascript:void(selectValue(1))">连接 1</a><br>
    <a href="javascript:void(selectValue(2))">连接 2</a><br>
    <a href="javascript:void(selectValue(3))">连接 3</a><br>
    <a href="javascript:void(selectValue(4))">连接 4</a><br>
    <script language="javascript">
    function selectValue(n)
    {
      var options = parent.frames["main"].document.form1.sel1.options;
      for (var i=0; i < options.length; i++)
      {
    if (options[i].value == n)
            {
    options[i].selected = true;
    return;
    }
      }
    }
    </script>3. list.html:
    <form name="form1">
     <select name="sel1">
      <option value="1">你点击了连接 1</option>
      <option value="2">你点击了连接 2</option>
      <option value="3">你点击了连接 3</option>
      <option value="4">你点击了连接 4</option>
     </select>
    </form>