|
-
Nov 18th, 2002, 12:28 PM
#1
Thread Starter
Fanatic Member
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.
-
Nov 18th, 2002, 07:02 PM
#2
Fanatic Member
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
-
Nov 20th, 2002, 05:09 PM
#3
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|