How to make a browser display a "save as dialog" so the user can save the content of a string to a file on his system? How to make a browser display a "save as dialog" so the user can save the content of a string to a file on his system? javascript javascript