Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 153
  • Last Modified:

SCRIPT Frames ?

Is it possible to make a script, that can find out if the browser is browsing FRAMED pages or not ??
0
win32
Asked:
win32
  • 2
1 Solution
 
HolySpiritCommented:
win32,
The following script will check if the current document is framed by another document or not >


<script language = JavaScript>
function checkPageFramed()
{
      if (top.location != document.location)
            return true;
      else
            return false;
}
</script>

<< A pretty short script >>

-- Holy Spirit
0
 
HolySpiritCommented:
win32,
P.S. the function will return true if the current document is framed, false if the document is un-framed ...
-- Holy Spirit
0
 
win32Author Commented:
Year I can see your point, and how the program works ! Thanks !
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now