Add modal autofocus example

Seeing #14989, this also seems like something worth documenting - at least IMO.
Why highlight this as HTML when it's JavaScript?