Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Apr 2003
    Location
    Seoul, Korea
    Posts
    329
    Thanks
    0
    Thanked 0 Times in 0 Posts

    recording another url without visiting there

    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?
    Get my greedy up

  • #2
    New Coder
    Join Date
    Apr 2007
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts
    as far as I know, that is impossible

  • #3
    New Coder
    Join Date
    Apr 2007
    Location
    Silicon Valley California
    Posts
    71
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #4
    New Coder
    Join Date
    Apr 2007
    Location
    Silicon Valley California
    Posts
    71
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •