Change header while long press

i need to select and copy div content so i thinking of changing header and show copy and paste icons while long press on div. is it possible to change header while long press on screen or click on button.