Article View: es.comp.os.linux.programacion
Article #5938Re: Detectar frames
From: Patxi R.Y.
Date: Tue, 26 Aug 2003 17:11
Date: Tue, 26 Aug 2003 17:11
41 lines
2193 bytes
2193 bytes
Tienes dos opciones:
Mete este JavaScript ANTES de la etiqueta <html>:
<script LANGUAGE="JavaScript">
<!--
if ( window.document.location != "http://direccion_del_frameset" )
{
window.open ( "http://direccion_del_frameset","_top" );
}
// fin de codigo oculto -->
</script>
O m�telo en la cabecera (entre <head> y </head>) y eso si, como
una funci�n y en el onload del <body> la llamas.
...
<head>
...
<script LANGUAGE="JavaScript">
<!--
function compframe(){
if ( window.document.location != "http://direccion_del_frameset" )
{
window.open ( "http://direccion_del_frameset","_top" );
}
}
// fin de codigo oculto -->
</script>
...
</head>
<body onLoad="javascript:compframe();">
....
Pruebalo y ya me dir�s. Es un script que hice justo para lo contrario,
usease, para que si esa web apareciera entre frames pues que saldria
fuera. La logica me dice que est� bien, pero prueba y me dices xD
--
Patxi R. Y.
www.patxi.tk
Technical Details
Message-ID:
<big4ic$1re$1@cernicalo.emeteo.local>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.online.be!newsgate.cistron.nl!amsnews01.chello.com!news-hub.cableinet.net!blueyonder!marmolejo.escomposlinux.org!frodo.antakira.com!news.antakira.com!antonio.escomposlinux.org!cernicalo.escomposlinux.org!escomposlinux.org!not-for-mailReferences:
<Xns93E3791F0D5B4dontemailmenevercom@194.179.3.124>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,3431c30f3f453db X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2003-08-26 10:11:09 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.online.be!newsgate.cistron.nl!amsnews01.chello.com!news-hub.cableinet.net!blueyonder!marmolejo.escomposlinux.org!frodo.antakira.com!news.antakira.com!antonio.escomposlinux.org!cernicalo.escomposlinux.org!escomposlinux.org!not-for-mail From: "Patxi R.Y." <patxiryBORRA_ESTO@terraTB_ESTO.es> Newsgroups: es.comp.os.linux.programacion Subject: Re: Detectar frames Date: Tue, 26 Aug 2003 19:11:15 +0200 Organization: Ecolnet Lines: 41 Message-ID: <big4ic$1re$1@cernicalo.emeteo.local> References: <Xns93E3791F0D5B4dontemailmenevercom@194.179.3.124> Reply-To: patxiryKITA_ESTO@terraESTO_TB.es NNTP-Posting-Host: 174-zara-x22.libre.retevision.es Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8Bit X-Trace: cernicalo.emeteo.local 1061918093 1902 62.82.245.174 (26 Aug 2003 17:14:53 GMT) X-Complaints-To: emeteo@escomposlinux.org NNTP-Posting-Date: Tue, 26 Aug 2003 17:14:53 +0000 (UTC) User-Agent: KNode/0.7.2