Below is syntax for add new attribute to element in prototype.

Syntax:

Here is code for add new attribute in element: