I have an iframe with a source that is a php file. What I'm trying to do is get Sweet Alert 2 to open in the parent frame rather than inside of the iframe. I have tried changing the target and have not had any success.
None of the following target options have worked:
swal({
target: 'window'
target: 'document'
target: 'parent'
});
This is the result that I get when 'body' is the target:
Edit:
SweetAlert 2 code
swal({
type: 'error',
text: 'You did not select any files.',
target: 'top'
});
iFrame code
<div id="viewWindow" class="col-xs-10 content">
<iframe id="waiverList" src="php/edit_archive.php"></iframe>
</div>
