clientside

how can i create a file on client side by JavaScript ?

i need to create a temp file to store user settings on the client side .it it possible to create a simple log file by JavaScript ? ...