Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Another popup question
- From: javascript@xxxxxxxxxx (Rodney Myers)
- Subject: [Javascript] Another popup question
- Date: Wed, 18 Sep 2002 12:38:50 +0100
> can I grab the url that the browser is going to?
It _is_ really simple: No.
All history data is tainted for privacy reasons.
Many firewalls suppress HTTP_REFERER, without which in the file header I believe
even document.referer will draw a blank.
Rodney
Gavin Cheyne wrote:
> Hi,
>
> I've been asked alter a javascript popup so that it triggers when a user
> leaves a particular area of the site. This will have to be triggered by
> onUnload so that it appears even if the user jumps to another site.
>
> I've got it working with onLoad thus:
>
> if (document.referrer.indexOf("my_directory") >= 0)
> {
> window.open("url", etc);
> }
>
> My question is this: can I grab the url that the browser is going to, rather
> than the one its coming from?
>
> I suspect it is something simple, but I've had my nose in (beginners)
> javascript books for days with no joy. Any help gratefully received.
>
> Gavin.
>
>
- References:
- [Javascript] Another popup question
- From: Gavin Cheyne
- [Javascript] Another popup question
- Prev by Date: [Javascript] Another popup question
- Next by Date: [Javascript] Another popup question
- Previous by thread: [Javascript] Another popup question
- Next by thread: [Javascript] Another popup question
- Index(es):