...

View Full Version : recording another url without visiting there



joonstar
05-08-2007, 12:31 AM
If a user visits http://aaaa.com, the browser will have the record of it.

So, if the user enters "a" into the address box of his or her browser,
The browser will suggest "http://aaaa.con" on the address box from its history.

I like to make it like the following.

(1) If a user visits http://aaaa.com which is supposed to reach my server,
The browser have the record of not only "http://aaa.com," but also "http://bbbb.com." without visiting http://bbbb.com.

(2) So if he or she enters "b" into the address box, the browser suggests "http://bbbb.com."


Is it possible with any javascipt code in index.html at http://aaaa.com?

antimatter15
05-08-2007, 01:43 AM
as far as I know, that is impossible

cyberlogi
05-08-2007, 08:55 AM
No, for security reasons, JavaScript on a webpage cannot hijack the browser behavior in this way. However, in browsers like Firefox, you can write extensions in JavaScript that would allow this behavior.

cyberlogi
05-08-2007, 08:57 AM
Actually, on second thought, you probably can send an HTTP POST REQUEST for the address http://bbbb.com to a hidden IFRAME. That should trick the browser into think that the user has visited bbbb.com.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum