I have some text data (say var a = \'Hello World From Javascript\';)in javascript variable in current window. I want to do the following through javascript-
var a = \'Hello World From Javascript\';
No, Content-Disposition is a response header, it has to come from the server. I think you could do it with Flash but I wouldn't recommend it.