Search code snippets, questions, articles...

asc payment app iframe to copy

  function onLoad() {
    document.getElementById('iframe').contentWindow.postMessage('test message', '')
<iframe onload="onLoad()" id="iframe" src="" ></iframe>

just replace the session id with a real one and you're good to go. This is for dev and should be copied in an article in the dev editor.

Was this helpful?
Programming Feeds
Learn something new everyday on Devsheet