Click to See Complete Forum and Search --> : show WindowsUserName in html-page without using cookies


fil
10-07-2004, 01:33 PM
How can I put the windowsusername into a HTML-page whitout using cookies.
Reason : different users are using a networkprinter, so when you see the username on each "first page" of the printjob, it will be fine !

f_arents@hotmail.com

Willy Duitt
10-07-2004, 01:38 PM
You don't say how you intend to get the windowsUserName but you can use the window.name property to store this value instead of cookies...

.....Willy

fil
10-07-2004, 01:41 PM
Willy
can you give me an example please ?

Willy Duitt
10-07-2004, 01:48 PM
Place this snippet in your addressbar and press go:
javascript:window.name='example of storing values';alert(window.name)

Then browse away and alert the window.name again:
javascript:alert(window.name)

.....Willy