Open window with data URL fails
-
Hello,
I have a crappy page that I created to learn some javascript. One part is to window.open() a new tab and put some random text there. This worked okay on Vivaldi until some version change quite a while ago. On FF this is still okay and I did not touch the code for a very long time.
This is the javascript code:
window.open('data:text/plain;charset=US-ASCII,random text', 'random name');
How can I make this work again with recent Vivaldi versions in a cross-browser compatible way, does anybody know?
Many thanks!
Roman
modedit changed title
-
Other than disabling the pop-up blocker?
-
@Gwen-Dragon
thanks a lot for your help.
Trying to paste the sample code here was blocked as spam
Put it here: https://gist.github.com/RomanManz/6dca1708341ae6a14cdb3d7c33c2014f -
@Gwen-Dragon
Works perfectly with my code :smiling_face_with_open_mouth: Thanks a lot!