Topic awaiting preservation: get domain from url string? |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: Northumberland, England |
posted 10-15-2003 14:24
Hi, |
Paranoid (IV) Inmate From: Den Haag, Netherlands |
posted 10-15-2003 16:27
Use split() ... google search for "javascript split" found this ... |
Nervous Wreck (II) Inmate From: |
posted 10-15-2003 18:01
Try location.host or location.hostname instead. (location.host includes domain & port; location.hostname is just the domain...) |
Paranoid (IV) Inmate From: Northumberland, England |
posted 10-15-2003 22:30
Thanks guys, works like a dream: code: function exturl() {
|