Locationbar Object

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Javier Casabella

    Locationbar Object

    Hello!
    How can I obtain the string that is contained in the location bar?

    thanks


  • ZER0

    #2
    Re: Locationbar Object

    On Wed, 7 Jul 2004 11:37:29 +0200, Javier Casabella wrote:
    [color=blue]
    > How can I obtain the string that is contained in the location bar?[/color]

    alert(window.lo cation.href);

    --
    ZER0://coder.gfxer.web-designer/

    ~ Deformazione professionale è:
    Quando in ascensore senti la ragazza accanto che tira fuori il cellulare,
    e ti volti per capire se e' un modello sul quale puoi sviluppare in J2ME.

    on air ~ "Enya - Athair Ar Neamh"

    Comment

    • Javier Casabella

      #3
      Re: Locationbar Object

      Not in this case.

      I have to obtain the location when the user change it in the location bar.
      For that I call a function when the event onUnload ocurrs, and in that
      function i have to obtain that location.
      With window.location .href returns the location from the actual page, not the
      location that the user writes.


      "ZER0" <zer0.shock@lib ero.it> escribió en el mensaje
      news:1n308ta2p1 40e.dlg@ID-171124.news.ind ividual.net...[color=blue]
      > On Wed, 7 Jul 2004 11:37:29 +0200, Javier Casabella wrote:
      >[color=green]
      > > How can I obtain the string that is contained in the location bar?[/color]
      >
      > alert(window.lo cation.href);
      >
      > --
      > ZER0://coder.gfxer.web-designer/
      >
      > ~ Deformazione professionale è:
      > Quando in ascensore senti la ragazza accanto che tira fuori il cellulare,
      > e ti volti per capire se e' un modello sul quale puoi sviluppare in J2ME.
      >
      > on air ~ "Enya - Athair Ar Neamh"[/color]


      Comment

      • ZER0

        #4
        Re: Locationbar Object

        On Wed, 7 Jul 2004 11:51:27 +0200, Javier Casabella wrote:
        [color=blue]
        > Not in this case.[/color]

        I just answered to your question.
        [color=blue]
        > I have to obtain the location when the user change it in the location bar.[/color]

        You cannot.

        --
        ZER0://coder.gfxer.web-designer/

        ~ Una mente perversa e' un peccato sprecarla.
        (A dirty mind is a terrible thing to waste)

        on air ~ "Enya - Athair Ar Neamh"

        Comment

        Working...