faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 3 people (67%) answered Yes
Recently 2 of 3 people (67%) answered Yes

Entry

How can I check if browser is configured as to show no pop-ups?

Apr 8th, 2008 18:29
ha mo, Dave Clark, Anette,


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Anette,
     The only way Internet JavaScript can detect that no popup was 
generated is as follows:
var ptr = null;
ptr = window.open('...your url...', '_blank', ...your features...);
if (!ptr || ptr.closed)
{
    alert('Please save this site as a trusted site so that popup 
windows can be displayed.');
}
Take care,
Dave Clark
www.DaveClarkConsulting.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com