Write a piece of JS
Function saveas ()
{
Self.Document.write (Document.all.TextBox1.Value)
Self.Document.execcommand ('saveas', false, 'c // Test.txt')
}
script>