How to set 'returnFocus' property
I’m trying to disable the default behaviour that returns focus to the element that called the lightbox. According to changelog (version 2.2.1):
By default, ColorBox returns focus to the element it was launched from once it closes. This can now be disabled by setting the ‘returnFocus’ property to false. Focus was causing problems for some users who had their anchor elements inside animated containers.
How can I set the ‘returnFocus’ property to false?
- The topic ‘How to set 'returnFocus' property’ is closed to new replies.