james.c.craig@comcast.net (James) wrote:
[color=blue]
> I am looking to add the domain name into the login url to access
> webmail via a link.[/color]
You really constructed a Subject line that most adequately reflects the
content of your message. More hints available at bargain price at
http://www.cs.tut.fi/~jkorpela/usenet/dont.html
[color=blue]
> location.href = "https://" + "domain_name%5C" + LOGINNAME + ":" +
> password +
> "@test.test1.com"[/color]
That's JavaScipt. Hint: JavaScript is not HTML. Nowhere near.
[color=blue]
> I am assuming[/color]
Stop assuming. RTFM.
[color=blue]
> the output should be:
>
> domain_name\user_name:password@test.test1.com[/color]
No, it shouldn't.
You might consider studying the URL syntax specifications, and would
learn that they _strongly_ advice against including passwords into
URLs, and then they _strongly_ say the same again. Besides, the syntax
with username:password was never part of approved http (or https) URL
syntax. Some browsers still decided to implement it.
But don't bother. Microsoft just decided to drop it for security
reasons. This was tragicomic, but at least it confirms the idea of not
putting a password into a URL.
[color=blue]
> Not real familiar with scripting[/color]
So don't do scripting (at least not here), mm'kay?
--
Yucca,
http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring:
http://www.cs.tut.fi/~jkorpela/www.html