If you have a popup blocker enabled on your web browser, you will have just seen a Javascript alerting you to this.
*
This can be very useful on your own website, I use a popup window to view my shopping cart, but if a popup blocker is enabled on a users browser, then my potential customers have a very difficult time ordering on my website.
So, I either use the script above to read:
'You are using popup blocker software. This website needs to open a window to show you the shopping cart... please disable your popup blocker.'
Or, I check if they are using a popup blocker, and then show them a direct link to click on which opens a window. This is more useful, as most popup blockers only block non-user activated poups, i.e. popups that happen without the user clicking a link. Also, it makes for a smoother experience as users don't have to turn their poup blocker on and off again just for your site (you will probably lose them, I wouldn't bother doing this for most websites).
'You are using popup blocker software. Please click here to your the shopping cart"