Web Hosting Directory | Web Hosting Resources | Webmaster Resources | Domain Tools | Search Engine Marketing | Forums
  Signup
Today: 1,241   Yesterday: 1,015   Max: 1,872   Total: 464,294   Current Users : 22 (Member 0) 
DOMAIN TOOLS

WEBMASTER TOOLS

RELATED ARTICLES

SUBMIT AN ARTICLE

Write for us and get publicity, link to your website, and best of all get paid. Please visit our writers page for details.


LINK TO US

Link to us and earn points for each visitor you bring to us. Please visit our link partner page for details.

 
back to Do Get Framed

Do Get Framed Example

If this web page is not loaded in a frame, it will give a large message (on browsers that support Javascript). Take a look at the page when it is not framed. If it is in a frame, there is no message. This is done using Javascript:

<SCRIPT TYPE="text/javascript">
<!--
function checkframed(gourl)
{
if (top == self)
   document.write(
      '<DIV STYLE="padding:8pt;' + 
      'border-style:solid;border-width:8pt;' + 
      'border-color:66CC33;">' + 
      '<STRONG STYLE="font-size:30pt;' + 
      'font-weight:900;font-family:sans-serif">' + 
      'This page is intended as part of a ' + 
      '<A HREF="' + gourl + '">framed document</A>.' + 
      '</STRONG></DIV>');
}

checkframed("dgftop.php");

//-->
</SCRIPT>



Copyright 1997-2002 Idocs, Inc. Written by Miko Sullivan.

 
 
 
What is your major source of website traffic?
 
 
 
 
 
 

ADVERTISEMENT

 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2008 Broadband Media, Inc. All rights reserved.