Popup blockers would not exist if popups were not annoying. The same can be said for mosquito spray. With the omnipresence of Ajax and dynamic HTML on the web, the popup is a throwback to the early web days, like Izod shirts and the Brat Pack were to the Eighties, and these make me cringe.
In an effort to remove these popup nuisances, I have been looking into the concept of LightBox. LightBox is a script used to inlay images in a page. Out of the box, this works perfectly for photos, but for content, I needed something else.
GreyBox is a solution I stumbled across and it is exactly what I need. Implementing it was nearly effortless. Out of the box, I can reuse all those ASPX pages I have for my popup windows. The only tweaks it required were to determine how to close the GreyBox from within itself, programmatically.
I will not show you much as far as examples because they can be found on the GreyBox website. However, I will show you how simple it is to open and close the script.
function ShowGreyBox(title,url)
{
return GB_showCenter(title, url);
}
function HideGreyBox()
{
parent.parent.GB_hide();
}
Investigate and see GreyBox in action. Thanks Amir for creating this beautiful script.