Link

Hi anna,

Thank you for replying to my messages! So after i read the thread i understood that i can’t code the button in the html component from the lightbox code editor so i need to code it inside the html but i am fine by that. I tried it before but i didn’t have the right code for it, so i read that for sending a message from the html to the page i need this ( function button_click() { window.parent.postMessage(document.getElementById(“theMessage”).value, “*”); } )
but my action is to close the lightbox, so what’s the code for that? is it: ( function button_click() { wixwindow.lightbox.close(); } ) ? because as i said it didn’t work when i tried it