Solved

SCRIPT Frames ?

Posted on 2000-03-24
3
148 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

632 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