get URL from onbeforeunload event

C

chaichana

Can I get the URL of the page it's gonna redirecting to from
onbeforeunload event ?
Something like...
window.onbeforeunload=foo;
function foo(e){
alert(e.url);
}
I read some articles about onbeforeunload, but I can't find the
solution for this problem.
 
R

Richard Cornford

Can I get the URL of the page it's gonna redirecting to from
onbeforeunload event ?
No

Something like...
window.onbeforeunload=foo;
function foo(e){
alert(e.url);}

I read some articles about onbeforeunload, but I can't find
the solution for this problem.

The problem here is how to distinguish between some supposedly
'legitimate' use for this ability and the power to spy on the browsing
behaviour of users that the facility would provide.

Richard.
 
C

chaichana

The problem here is how to distinguish between some supposedly
'legitimate' use for this ability and the power to spy on the browsing
behaviour of users that the facility would provide.

Richard.

Thanks a lot Richard :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,120
Latest member
ShelaWalli
Top