LocationBar and History

Discussion in 'JavaScript' started by fasti, May 24, 2008.

  1. #1
    hi everyone,

    First I should point out I'm using Mozilla FireFox.
    (that has to be the cause for some of my predicament).

    I'm trying to interact with the locationbar (i.e "addressbar"),
    by copying the Highlighted text selected in it.
    Example - the user marks the word "com" in www.smthng.com/main.htm
    and I want to know which part he/she marked (highlighted).
    Is there a way to see the text selected in "window.locationbar"?

    secondly, I want to know what URL is in the "back" navigation (history)
    but without actually performing "history.go(-1)" (or "back()").
    I tried "history.previous" but it returnes no value (a FF problem?).

    thanks in advance for any useful information.
     
    fasti, May 24, 2008 IP
  2. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #2
    first part: I dont think you can see what they are highlighting, no sorry

    second part: you can use php and get the referrer to see the last page.
     
    crath, May 30, 2008 IP