Results 1 to 3 of 3

Thread: Get my current URL [RESOLVED]

  1. #1

    Thread Starter
    Fanatic Member JCScoobyRS's Avatar
    Join Date
    Oct 2002
    Location
    Some Mountain in Colorado
    Posts
    677

    Get my current URL [RESOLVED]

    I need to be able to get the current URL of my page and store it to a variable. Can someone help me? Thanks, Jeremy

    Ex: "http://localhost/StarWeb" I need to get that string and store it in a variable so that I can create dynamic links to webpages.
    Last edited by JCScoobyRS; Nov 20th, 2002 at 05:09 PM.
    He who listens well, speaks well.

  2. #2
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    Here you go:

    Code:
    var CurURL = location.href
    alert(CurURL)
    www.RealisticGraphics.net

    Running VS.Net Enterprise & VB 6

    Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML

    MSN Messenger: kmsheff

  3. #3

    Thread Starter
    Fanatic Member JCScoobyRS's Avatar
    Join Date
    Oct 2002
    Location
    Some Mountain in Colorado
    Posts
    677

    Thanks

    Thanks, works like a charm.
    He who listens well, speaks well.

Posting Permissions

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



Click Here to Expand Forum to Full Width