Thursday, December 20, 2012

Re: Can I get the URL where the User want's to go ?

On 18/12/2012 10:52, Dominic Warzok wrote:
> I'm looking for a while now to find a method which gives me the URL the USer typed in.
>
> For example: the user is on my webpage www.xyz.com/www/mysite.html and now he types in
> the browser bar www.google.de and hit enter.
>
> It is possible to get the new url in my webapp?

AFAIK, no. (Unless, perhaps, you write a specific browser plugin!)
After all, as soon as the user hits Return, the browser no longer has to deal with the
current page, and has no reason to notify it of the change.
At best, depending on browsers, you can be notified of a page leave, but some browsers
deactivated the feature (to avoid pop-unders and similar annoyances).

Note: I am happy such information isn't available to a page, it would be a breach of privacy!

--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment