I was trying to open a new window from the firefox responsive view and write html to its dom, for that I called
var wind = window.open('','')
wind.document.write="<h1>Test</h1>"
But window.open()
always returns a null object from the responsive view. It's working well in chrome responsive view though. I've gone through many docs and according to the official docs a null return means the window failed to open, but here it's opening window and returning reference null
.
Please suggest any workaround.