کد جاوا اسکریپت جلوگیری از قرار دادن صفحات سایت در فریم :


//**************************************

// Name: _ Function that stops people from trying to view your page INSIDE a frame _

// Description:

<strong>SUPER EASY!</strong>

The reason i wrote this was to stop people from trying to put my site in THEIR frameset

This code makes it impossible for people to do that!

// By: paul_cormie

//

//

// Inputs:NOTHING ——————&gt; its all cut and paste.

even the HTML.

//

// Returns:n/a

//

//Assumes:cut and paste even the HTML

//

//Side Effects:none

//This code is copyrighted and has limited warranties.

//Please see http://www.Planet-Source-Code.com/xq/ASP/txtCodeId.2022/lngWId.2/qx/vb/scripts/ShowCode.htm

//for details.

//**************************************

<script type=”text/javascript”>// <![CDATA[

 Javascript Start --      if (top.location != self.location) {     top.location = self.location.href } //--Javascript End

// ]]></script>

try to put this page in a frameset!.

it won’t work.

Leave a Reply