Reputation: 662
I'm currently using Twitter bootstrap for Yii (http://www.cniska.net/yii-bootstrap/#tbModal)
The modal window displayed on their site opens when clicked on a button. Anyone has any clues on how to open the modal window on page load?
I tried simulation a button click in javascript on load, but that's not really the correct way to go
Upvotes: 2
Views: 1619
Reputation: 11264
Try the option autoOpen
as documented on http://www.cniska.net/yii-bootstrap/#tbModal
Upvotes: 1