Hello world!
I'm currently trying to use Tiddlywiki to store some mail templates for my non-profit org..
I would like to use javascript to be able to store the name of the local user in order to put it in a signature at the end of each tiddler.
I tried to declare a variable with the following code (between the <head> marks):
<script>
var person = prompt("Please enter your name", "");
if (person != null) {
document.getElementById("person").innerHTML =
"person";
}
</script>
the prompt works fine and the variable is declared as I verified in the source code showed by Google Chrome, so it seems to work.
Now, I just need to know how to declare it in a tiddler.
I Would just like to add the name of the user declared in the variable in the signature, like this:
Regards,
<<person>>
My non profit organisation.
Anyone knows how I could do it, if it's possible?
Thank you all :) !