Have a nice Christmas friends!

I am trying to understand how you can generate a frame in which the html document will be again by clicking a button in an html document, but there should be no explicit reference to the source name for the frame, since the parent html file will be renamed by -differently.

In addition, there is a data table in the parent html document, in the frame it should be filtered and changed as a result. For example, something like this: all negative values ​​in the cells of a frame table should become positive or rows where the values ​​of the first column have the name "Basil" to hide in the frame table ... And other dregs of this kind led a couple of typical operations can happen to frame.

Had tried:

  1. Find good sources on the Internet, how to manage frames and its elements (tables, buttons, containers and other tags) from the parent document using JS (taking into account that frame elements will have the same names, id and class as their parent).
  2. How to avoid explicitly specifying names for frames, and simply indicate that you need to load the parent page (with buttons and a table).
  3. How to avoid looping the code if the parent document "gives birth" to the frame, which in turn will "give birth" to the frame, etc. (stop recursion of a kind of "birth" of frames). Help with these problems, friends.
  • The javascript location.href will be presented in the following section, without any spaces, to read more easily - zb '
  • Thanks for the answer. location.href is the answer I understand to my second question (problem). And what about the rest? And about the merged text, I sort of broke into two paragraphs, the question and the section "tried." The only thing that wrote the points without moving to a new line. - IntegralAL

1 answer 1

The frame content is not available from the parent document, i.e. you can’t manage the contents