1

Visualforce uses onload to load some stuff, so adding a handler here can cause problems. Instead: <script> function init() ... omitted ... function handleMessage() ... omitted ... window.addEventListener('DOMContentLoaded',init); </script> This final line will let your init method execute as soon as the page finishes loading. Note that ...


Only top voted, non community-wiki answers of a minimum length are eligible