0
I made a form where an action is executed in iframe, i need somehow, this file I’m opening in iframe call my function in VUE, I’m posting my code below.
new Vue({
el:"#app",
data : {
teste : '',
},
methods :{
salvar : function(){
this.$refs.form.submit();
},
retorno : function(){
alert('esse é o retorno')
}
}});
External code:
<script>
parent.retorno();
</script>
Both parent page and iframe are in the same domain?
– Sergio
yes, they are in the same domain
– Victor M.