Board Thread:Script Suggestions/@comment-28776531-20160320205822/@comment-4731838-20160327113314

Tardis makes use of such a button. I believe this thread would be helpful to you. The code can be found here