var frames=window.parent.window.document.getElementById("frameid"); //通过id取得框架对象 frames.contentWindow.search(urlload); //函数调用