Here's how I change the value of an existing attribute:

```
element.attributeName = "value"

```

But is it OK to use the above method to create a *new* attribute? 

Notes:

1. JavaScript only.
2. Please provide the relevant documentation.
3. I don't need to support old browsers.