Easy Way To Trigger Thickbox onload
ThickBox is a webpage UI dialog widget written in JavaScript on top of the jQuery library. Its function is to show a single image, multiple images, inline content, iframed content, or content served through AJAX in a hybrid modal. Thickbox is quite well known and a lot of people are using on their website.
Thickbox is poping up when you click on the link. However, if you want to launch Thickbox right after opening the page – onload. Thre’s a quite simple way to do so. As actual Thickbox is calling from the function called tb_show(), you can call it from the jQeury when the page is ready.
So just call the function in the jQuery “ready” event after the external link to the thickbox file like below.
That’s it! It’s very simple, isn’t it? Hope you found it useful to solve your problem.

Now What?
You might be interested in these related posts.





No Comments
Leave a Comment




Poll
Subscribe to Fish in the River, and we'll deliver you the newest fresh inspirational resoueces for free.


Please feel free to let us know what you think.