Solved

SCRIPT Frames ?

Posted on 2000-03-24
3
143 Views
Last Modified: 2010-04-09
Is it possible to make a script, that can find out if the browser is browsing FRAMED pages or not ??
0
Comment
Question by:win32
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
HolySpirit earned 10 total points
ID: 2655990
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
 
LVL 2

Expert Comment

by:HolySpirit
ID: 2655991
win32,
P.S. the function will return true if the current document is framed, false if the document is un-framed ...
-- Holy Spirit
0
 

Author Comment

by:win32
ID: 2657822
Year I can see your point, and how the program works ! Thanks !
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Find out what you should include to make the best professional email signature for your organization.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now