Re: [OFF-TOPIC] Javascript
| From: | Jose OLIVEIRA | Date: | Thu, 25 Jan 2001 12:45:01 +0000 |
| Subject: | Re: [OFF-TOPIC] Javascript | ||
| References: | 1 2 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-6159@lists.php.net to get a copy of this message | ||
> ¿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