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

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -