Forum Moderators: open

Message Too Old, No Replies

how to check whether javascript, pop-ups are enabled on the browser

         

sreedevi2006

10:18 am on Dec 12, 2006 (gmt 0)

10+ Year Member



I would like to know how you can check if the browser support for javascript, pop-ups is enabled or not through a javascript function?

penders

1:05 pm on Dec 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



By JavaScript popups, do you mean calling window.open()? In which case the window.open() method returns a reference to the newly opened window:

myWin = window.open(...);

What does myWin contain when the window fails to open (ie. pop-up being disabled by the browser) ...? null I guess?