javascript - How to check window.showModalDialog availability? -



javascript - How to check window.showModalDialog availability? -

javascript method window.showmodaldialog deprecated , not working in chrome browser anymore. stop working in fire fox. want replace window.open if browser not back upwards showmodaldialog.

how observe if browser still back upwards functionality? possible modernizr library , how?

use condition.

if(window.showmodaldialog) console.log("derp"); else console.log("herp");

javascript modernizr showmodaldialog

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -