JavaScript Objects HTML Objects Example When the "Check window" button is clicked, the function check() is called and the current window status is checked. If the topmost window (window.top) is different from the current window (window.self), then output that "This window is not the topmost window! Am I in a frame?". If the topmost window equals the current window, then fire the else statement: function myFunction() { } else { } } The top property returns the topmost browser window of the current window. Browser Support Syntax window.
Read full article from Window top Property
No comments:
Post a Comment