Re: [OFF-TOPIC] Javascript
| From: | Cecilio | Date: | Thu, 25 Jan 2001 22:36:08 +0000 |
| Subject: | Re: [OFF-TOPIC] Javascript | ||
| References: | 1 2 3 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-6225@lists.php.net to get a copy of this message | ||
Gracias, Josevi. Esto que me envias ya me servirá.
Esto me interesa porque estoy haciendo unas páginas de estadísticas, y
precisamente quiero eso, saber la URL de la que provienen los usuarios. Se
me ocurre hacerlo con el 'history' de js, pero queda un poco 'chapuza'. Si
no hay otra forma (en PHP creo que no), el 'document.referrer' es más de mi
agrado.
Saludos.
----- Original Message -----
From: "Jose OLIVEIRA" <Jose.Oliveira@steria.com>
To: <lista@phpes.com>
Sent: Thursday, January 25, 2001 1:45 PM
Subject: Re: [PHP-ES] [OFF-TOPIC] Javascript
> > ¿Alguien me puede decir una lista javascript buena en español (o en su
> > defecto, en inglés)?
> >
> a ver si alguien te contesta, seria muy interesante, yo no lo se... :-)
>
> yo he encontrado cosas interesante alguna vez en:
> http://tech.irt.org/articles/script.htm
> http://www.javascript-page.com/
> http://www.webreference.com/js/
>
> > Quiero preguntar (a lo mejor alguien lo sabe), sobre la función js
> > 'document.referrer', ya que no encuentro info por ahi.
> >
> > Tengo un script que actua asi:
> >
> > document.write('<IMG
> > SRC="http://estadisticas.ii/cuenta?id=yomismo&ref='
+
> > escape(document.referrer) + '>');
> >
> para ese tipo de cosas echale un vistazo a la biblia de
javascript-netscape:
>
> http://developer.netscape.com/docs/manuals/communicator/jsref/index.htm
>
> ----------
8< ---------------------------------------------------------------
> referrer
> Specifies the URL of the calling document when a user clicks a link.
> Property of document
>
> Read-only
>
> Implemented in Navigator 2.0
>
> Security
> Navigator 3.0: This property is tainted by default. For information on
data tainting, see "JavaScript Security".
>
> Description
> When a user navigates to a destination document by clicking a Link object
on a source document, the referrer property contains the
> URL of the source document.
> referrer is empty if the user typed a URL in the Location box, or used
some other means to get to the current URL. referrer is also
> empty if the server does not provide environment variable information.
>
>
> Examples
> In the following example, the getReferrer function is called from the
destination document. It returns the URL of the source
> document.
>
> function getReferrer() { return document.referrer}
> ----------
8< ---------------------------------------------------------------
>
>
> saludos,
> josevi
>
>
> ---------------------------------------------------------------------
> Archivo On-line: http://www.phpes.com/
> Manual PHP en español: http://www.php.net/manual/es/
> Para dar de baja la suscripción, mande un mensaje a:
> lista-unsubscribe@phpes.com
>