I highly doubt JavaScript has access to that kind of information - in
fact, I hope it does not; imagine any random website could retrieve your
account name or other environment variables...
However, it might be possible with ActiveX (Internet Explorer only).
The code might look something like the following (put this into a
tiddler tagged with "systemConfig"):
---------------
var ws = new ActiveXObject("wscript.shell");
config.options.txtUserName = ws.ExpandEnvironmentStrings("%username%");
---------------
(entirely untested, as I'm on Linux)
HTH.
-- F.
Anything you like (e.g. [[Evil Witchery]]).
The important part is the "systemConfig" tag, which causes the tiddler
contents to be interpreted/processed/evaluated as JavaScript code.
-- F.
This works only when using Windows *and* Internet Explorer.
Other browsers do not support ActiveX by default - however, there seems
to be an ActiveX plugin for Firefox:
http://support.mozilla.com/en-US/kb/ActiveX
http://kb.mozillazine.org/ActiveX
-- F.