alert(window.open('http://www.google.com'));
i tried this on firefox, and i get null, no prob in ie. any idea why?
alert(window.open('http://www.google.com'));
i tried this on firefox, and i get null, no prob in ie. any idea why?
I tried it and also got the result is in Message box Object and also the related web page opened.
When clicking the popup blocker it will ask security warning messsage just click yes with ctrl button you will get the result.
Firefox will return null as it's essentially a void method - you're asking it to alert(null).
window.open(''); I believe is a null method anyway - but it certainly works in FF 3.5 on 10.6