How to stop page reload using using buffer

I am developing a web application that uses Javascript extensively.
My problem is the the JS code that had been working in Chrome does not work in Brave.

w ='', '','width=100,height=100');
w.document.write('You are now connected to your Verifier');

How compatible is Brave with Chrome.
The example above is straight out of

Description of the issue: Unable to popup alert window

Exact URL of the website in question: Private local server

Did the issue present with default Shields settings? (yes/no)

Does the site function as expected when Shields are turned off?

Is there a specific Shields configuration that causes the site to break? If so, tell us that configuration. (yes/no):

Does the site work as expected when using Chrome?

Can you be more specific? The two lines of code you provided don’t offer a lot of information about what it is you’re trying to accomplish.

@catotonic do you have an example site where its breaking?