| Page 1 of 1 | [ 2 posts ] |
|
Hi
I am using the overlay widget and wondered if there is an inbuilt method to give the contents of the overlay focus once it is shown. Also is there a function that passes focus back to the initiating element when the overlay is closed? Thanks in advance |
Juan Ignacio DopazoYUI Contributor
|
You can use the visibleChange event of the overlay:
Code: overlay.after('visibleChange', function (e) { if (e.newVal) { overlayContent.focus(); } else { initiatingElement.focus(); } }); |
| Page 1 of 1 | [ 2 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group