Ragazzi devo realizzare un pulsante che al click mi copi tutto il codice html negli appunti, è possibile?

E' urgente.
Grazie a tutti