I want to save a javascript string variable into a .txt file by clicking on save button. By clicking on save button it should open a prompt where the user can enter the filename and able to save that file in any location in local pc.
So how can i do this?