提示的错误是: window.parent.MapFrame.document为空或不是对象

解决方案 »

  1.   

    try:
    window.opener.MapFrame.document
      

  2.   

    window.open你是写在哪个页面的?你只要知道opener与parent分别在什么时候用,相信你很快就能藉此找到MapFrame,从而解决这类问题。
      

  3.   

    The [opener] property is available only from a page opened using the window.open method.The [parent] and [top] properties are available for a window opened inside a frame or iframe. The two properties return the topmost parent and immediate parent, respectively.The [parent] and [top] properties are available for a window opened via the open method or as a dialog and returns the current window.
      

  4.   

    window.opener.parent.MapFrame.document.frmMap.Cmd.value="Query";