Copy link to clipboard
Copied
I'm working on banner and I need to add a "close button" and a "auto-close" at the end of banner.
The code i tried to use doesn't work :
if(!this.bton_Fermer_click_cbk) {
function bton_Fermer_click(evt) {
// Début de votre code personnalisé
console.log("Button clicked");
OA.close('bt'); <--- This part was added by me based on client specs
// Fin de votre code personnalisé
}
$("#dom_overlay_container").on("click", "#bton_Fermer", bton_Fermer_click.bind(this));
this.bton_Fermer_click_cbk = true;
}
I also need to add "OA.close('bt');" on the last frame of my timeline.
Thanks for your help
Copy link to clipboard
Copied
what are you trying to close?
if it's the html page/browser window you're trying to close, that's only possible if the window was opened via javascript and you use the window close() method.
Copy link to clipboard
Copied
Hi,
I'm trying to close an expand banner. It begins with a 630x250 banner for 10sec. After the 10 sec. or after pushing the close button, a smaller banner (250x300) appears.
The "OA.close('bt');" button and the "OA.close('auto');" are given in the technical specifications by the Advertising agency. My problem is how and where should i put those instructions.
Thanks for your help and sorry for my poor english level
Copy link to clipboard
Copied
What do you mean by "it begins"?
do you use ha to "begin"!
Copy link to clipboard
Copied
I mean, at the opening of the website homepage. The 630x250 banner appears/loads and should "auto-close" 10 sec later then a second banner (300x250) loads on the left side of the page.
Thanks
Copy link to clipboard
Copied
you don't seem to understand which leads me to believe it's not possible (in your situation) to close your window using js.