javascript method called frame

<frameset rows="75,*" framespacing="0" frameborder="no" border="0" noresize>
  <frame src="frame/top.htm" scrolling="no" name="topF" noresize>
  <frameset cols="190,*" framespacing="0" border="0" noresize>
    <frame src="dfdf.html" scrolling="no" noresize>
    <frameset rows="30,*" framespacing="0" border="0" noresize>
        <frame src="./htm" scrolling="no" noresize name="subright">
        <frame src="sdf.htm" name="mainFrame"  noresize>

For the above code, self.parent.frames get used <frame> label, but self.parent.frames.length = 4

For example: self.parent.frames ["topF"] get name = "topF" the <frame>

The method in the javascript call frame

self.parent.frames [frame name or number]. Methods


self.parent.frame name. Methods

Call the parent frame of the sub-frame

self.parent.frames [parent frame]. frames [sub-frame]


window.frames [sub-frame]

Call the same layer frame

self.parent.frames [frame]

Self above the window can be replaced
标签: lt, window frames, frame name, frameset rows, layer frame, parent frame, frameset cols, frame src, mainframe, html scrolling
分类: Web
时间: 2010-06-09


  1. Web page refresh using javascript method to achieve

    Web page refresh using javascript method to achieve javascript refresh page Javascript refresh the page severa ...
  2. AJAXRPC make direct calls to server side javascript method

    News → Web News → AJAX front-end 8 1 step AJAXRPC make direct calls to server side javascript method 9 hours a ...
  3. javascript method defined two-dimensional array

    Suddenly in the project use to javascrip two-dimensional array, a search and found that, javascrip not two-dim ...
  4. Javascript method to refresh the page frame and the total set of

    First look at a simple example: The following were named to three pages frame.html, top.html, bottom.html exam ...
  5. javascript on the frame of the operation and commonly used method

    1, such as a frame of a page under: <frame src="body.jsp?model=<%=model%>" name="mainf ...
  6. Javascript method to refresh page summary

    First look at a simple example: The following were named to three pages frame.html, top.html, bottom.html exam ...
  7. JavaScript method defined function

    In JavaScript, the way defined functions can be said is full of tricks, there are many ways, the following def ...
  8. JavaScript method overload problem

    JavaScript's method does not allow duplicate names, the form can not be achieved Java method overloading, but ...
  9. JS Tip: call in the iframe parent page / sub-page JavaScript method

    Description: Suppose there are two pages, index.html and inner.html. Index.html which has a iframe, the iframe ...
  10. [Switch] to use Firefox to debug javascript method

    View Article firefox Venkman to debug javascript 2008-03-24 09:35 Debugging javascript has been a headache for ...
  11. How to html or javascript method called DLL files

    JavaScript can not call common DLL, but you can use the new ActiveXObject call the ActiveX DLL, such as: <s ...
  12. javascript method called flex

    / / Important to perform the following up in the Flex to call in JS private function registerCallBacks (): voi ...
  13. javascript method (Methods)

    1, Array array.concat (item..) concat method returns a new array that contains the array of shallow copy (shal ...
  14. javascript method to remove trailing spaces

    // Before and after removing spaces function trim(str) { if(str==null) return ""; // If str existed ...
  15. Javascript, ajax implementation md5 method

    JavaScript method in the string is not md5, PHP in there this method, it is very comfortable, and where you wa ...
  16. Javascript photo frame effects

    Javascript effect a frame, the effect results can refer to: ...
  17. Javascript中的方法链(Method Chaining)介绍

    这篇文章主要介绍了Javascript中的方法链(Method Chaining)介绍,本文讲解了Javascript Method Chaining.Method Chaining 使用.Method Chaining ...
  18. JavaScript function calls in the swf

    In the past year, for developers to use flash and javascript communication trouble will always run into some t ...
  19. showModalDialog (). showModelessDialog () method uses Xiangjie

    There are many built-in Javascript method to generate dialog boxes, such as: window.alert (), window.confirm ( ...