# Javascript confirm from Flash?

**URL:** <https://forum.kirupa.com/t/javascript-confirm-from-flash/170277>\
**Category:** flash\
**Created:** [November 24, 2005, 8:57am UTC](https://forum.kirupa.com/t/javascript-confirm-from-flash/170277 "2005-11-24T08:57:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danko](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@Danko](https://forum.kirupa.com/u/Danko)\
**Post date:** [November 24, 2005, 8:57am UTC](https://forum.kirupa.com/t/javascript-confirm-from-flash/170277/1 "2005-11-24T08:57:19Z")

</div>

Can it be done?

I mean, the Javascript \*\*alert \*\* triggered from Flash works just fine.  
But the **confirm** is the another pair of trousers: on cancel it does nothing, but on submit it sumbits the whole page! And I don’t want that - I just want to pass that information to Flash.

I guess it can be than done with multiple frames:

1. first frame contains Flash+simple Javascript “transmitter” that transmits to another frame’s Javascript when triggered via Flash’s FSCommand
2. second (probably hidden IFrame) contains the Javascript “receiver” that pops-up confirmation box. When submit is pressed, the second IFrame is being submitted and it sends that information to the “transmitter” which passes that info to Flash.

The question is: is there an easier solution?

Thanks.
