I have a web page with few tabs. All tabs have same data but in different format. The page has a copy to clipboard feature which copies the contents of the active tab to clipboard. Similarly we need to have a save as text file option which copies contents of the active tab alone by prompting use for selecting a location and then ssving it. I checked a few alternatives like use of execcommand, but not sure whats best way to do the same.
Thanks in advance.