Window self Property

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP







<!--
main_leaderboard, all: [728,90][970,90][320,50][468,60]
-->



Window self Property


❮ Window Object




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()
  if (window.top != window.self)

    document.getElementById("demo").innerHTML = "This window is NOT the topmost window!";
   else

    document.getElementById("demo").innerHTML = "This window is the topmost window!";

  

Try it Yourself »


Definition and Usage


The self property returns the current window.


The self property is often used in comparisons (like in the example above).


This property is read-only.



Browser Support














Property
self Yes Yes Yes Yes Yes

Syntax



window.self

Technical Details




Return Value: A reference to the Window object itself


❮ Window Object

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Edmonton

Crossroads (UK TV series)