An example of how this works:
Firefox: second and third rendering of a white page
Chromium: the first case is a white page
<body> <a href="javascript: something.with_early_return();">with_early_return</a> <a href="javascript: something.with_false();">with_false</a> <a href="javascript: something.with_string();">with_string</a> <script> var something = { with_early_return: function() { alert("with_early_return"); return; }, with_false: function () { alert('with_false'); return false; }, with_string: function () { alert('with_string'); return 'It renders this as text'; } } </script>
source share