passing url

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chelvan
    New Member
    • Aug 2008
    • 90

    passing url

    hi
    all

    its me again

    Is it possible to passing asn url or any other pages through javascript.

    thanks in advance
    chel-1
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    What's an "asn url"? Or was that supposed to be "a url"?

    Show what you mean by code or an example.

    Comment

    • chelvan
      New Member
      • Aug 2008
      • 90

      #3
      Originally posted by acoder
      What's an "asn url"? Or was that supposed to be "a url"?

      Show what you mean by code or an example.

      oh sorry

      ya thats url

      thanks
      chel-1

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        This is a simple example:
        [code=javascript]location.href = "http://www.example.com/index.php?url=" + encodeURICompon ent(url);[/code]

        Comment

        • chelvan
          New Member
          • Aug 2008
          • 90

          #5
          thanks all

          with thanks
          chel-1

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            You're welcome. Glad it's working.

            Comment

            Working...