What does “async: false” do in jQuery.ajax()?

Does it have something to do with preventing other events on the page from firing? Yes. Setting async to false means that the statement you are calling has to complete before the next statement in your function can be called. If you set async: true then that statement will begin it’s execution and the next … Read more

Click button copy to clipboard

Edit as of 2016 As of 2016, you can now copy text to the clipboard in most browsers because most browsers have the ability to programmatically copy a selection of text to the clipboard using document.execCommand(“copy”) that works off a selection. As with some other actions in a browser (like opening a new window), the copy to … Read more