@toicontienJun 13.2007 — #Hm. This sounds like the seed of a huge browser security flaw. The ONLY way this [I]might[/I] work is if you use ActiveX, which means your script will be Internet Explorer-only. You could try searching the Microsoft Developers Network.
I'm betting you can't do that. That's a HUGE security no-no.
@jeffcravenerauthorJun 13.2007 — #that would suck. haha....I use VB .NET and can grab the username pretty easily....so I was hoping the same thing can be done in HTML, or with a script in HTML.
It's for an intranet site within our company, and we only use IE, so that would be fine. I will check the link.
What i am trying to do, is we have a website we have for reporting issues with certain things, and it generates and e-mail. And ?I want the email to come from the person who is filling out and submitting the form.
@toicontienJun 13.2007 — #Yeah, something like: <script type="text/javascript"> var username = "<%=username%>"; </script> That way you're not having the browser hack into the OS.
@jeffcravenerauthorJun 13.2007 — #awesome! thats exactly what i was looking for!
The webpages we use are not built with VB .NET (asp), only using HTML with some Java scripting...I was just saying in VB .NET i know how to grab the username, so was hoping there was a way in HTML or javascript.
@jeffcravenerauthorJun 13.2007 — #OHH..i see what ur saying...if i was using VB .NET in the background for this HTML page, i could do the above....gotcha. Unfortunately, only allowed to use some java or VB script.