JavaScript values ​​can be passed between frames on the same web page?

"JavaScript values ​​can be passed between frames on the same web page. This only becomes a problem when trying to determine the type of the referenced value, since each web page has its own global context - its own version of Object, Array and all other built-in types. As a result, when you pass an array from one frame to another, instanceof does not work because the array is actually an instance of an array from another frame. "

I was reading some book by J. when I came across the above passage. I don't quite understand that "values ​​can be passed back and forth between frames on the same network ..." means that "frame" here is like 60fps? And if so, what does the meaning of transfer between frames mean? Can anyone show me an example of "passing values ​​between frames"?

+3


source to share


1 answer


this means you can pass back and forth js variable between elements <iframe>

that are children of your window. there are limitations, especially when the frame has its origin in another domain.



0


source







All Articles