Article View: chile.comp.programacion
Article #406Re: ayuda con javascript
From: Jos� Miguel Santib��ez
Date: Thu, 12 Mar 2009 04:54
Date: Thu, 12 Mar 2009 04:54
45 lines
2122 bytes
2122 bytes
En el cap�tulo anterior (news:gp9d01$bmf$1@news.nivel5.cl), "Rick_oj"
<rick_oj[sin-esto]@tutopia.com> dijo:
> tengo un codigo javascript que previene que presiones el f5 y el boton
> derecho del mouse
> cuando lo pruebo solo, funciona, pero lo inserto en un php y no
> funciona
Define "no funciona"... �no aparece el c�digo en el fuente al verlo en el
browser? �aparece pero no hace nada?
> <script>
Idea <script type="text/javascript">
> function Verificar()
> {
> var tecla=window.event.keyCode;
> if (tecla==116) {
> alert("Funciones deshabilitadas"); event.keyCode=0;
> event.returnValue=false;
> }
> }
>
> function derecha(e) {
> if (event.button == 2) {
> alert("Funciones deshabilitadas");
> }
> }
> document.onmousedown=derecha
> </SCRIPT>
> </head>
> <body onKeyDown="javascrip:Verificar()">
>
> alguna solucion de que pueda ser?
>
>
--
Jose M. Santiba�ez A.
<jms@nivel5.cl>
<http://caos.cl/jms>
Technical Details
Message-ID:
<Xns9BCC1366CC638jmsnews@200.54.144.211>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!news.kjsl.com!news.nivel5.cl!news.tie.cl!not-for-mailReferences:
<gp9d01$bmf$1@news.nivel5.cl>Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,e363173fbca84e78
X-Google-Attributes: gid1593cb,domainid0,public,usenet
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!news.kjsl.com!news.nivel5.cl!news.tie.cl!not-for-mail
From: "Jos� Miguel Santib��ez" <jms@nivel5.cl>
Newsgroups: chile.comp.programacion
Subject: Re: ayuda con javascript
Date: Thu, 12 Mar 2009 04:54:31 +0000 (UTC)
Organization: Caos Consultores
Lines: 45
Message-ID: <Xns9BCC1366CC638jmsnews@200.54.144.211>
References: <gp9d01$bmf$1@news.nivel5.cl>
NNTP-Posting-Host: 201-236-185-91.adsl.tie.cl
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: jagger.tie.cl 1236833671 23784 201.236.185.91 (12 Mar 2009 04:54:31 GMT)
X-Complaints-To: news@jagger.tie.cl
NNTP-Posting-Date: Thu, 12 Mar 2009 04:54:31 +0000 (UTC)
User-Agent: Xnews/5.04.25
X-Face: +|NgjgFM{<rs%\Q|vUu16]a6,}?MJTA<!PEEI+x&Gw-Gyq+?$}fvo+.(,-r;)~Qzn)#{{nxU,OT?w^s<7m4ckCJ*L$c#I)yHL7b)GdU*#l