Hello, guys.
Would You explain why so great feature as window.onerror doesn't work anymore on APEX pages? I mean the following.
Create a page with button that case DA with simple PL/SQL action and code:
begin
RAISE_APPLICATION_ERROR(-20000, 'Ugly error!');
end;
Add code window.onerror = function(pMessage){ alert('Friendly error.'); } on "Execute when Page Loads" section of page.
Click button and got a something:

It did work in 5.*, but doesn't in 18*.
Appreciate You for any idea how to get it to work back.
PS
Look, guys, should i think about users while informing them about errors?! I dont need APEX talks after me )))
Ajax call returned server error ORA-20000: Ugly error! for Execute PL/SQL Code.