Saveas function not working chrome is javascript

There is a save button. On clicking the save button i need to save the page on my local system.
I have implemented it using the document.execCommand(‘SaveAs’)
It seems it will work only for IE.
Are there any other ways of implementing the “save as” option so that it works on all browsers.