javascript - JS trigger event on window.parent from iframe with timeout -
I'm tyring to trigger a program to trigger a button on the window to expire 2 seconds Click on iframe using jquery with
My In-Earm button:
& lt; Input id = 'submit' type = "submit" name = 'submit' value = "save" & gt; Click Jquery Event:
$ ("# submit") (function () {window.parent.setTimeout (function () Some stuff ....}, 2000);}); Well, it's working with Safari 7.0.3 and Chrome 34.0.1847.116 meters, but in Firefox 28.0 and in my current version IE11, I have no chance of working on it. Does anyone know the trick?
First of all, are you okay with just allowing the latest browsers?
In that case you can use a post message, one click, you wait for 2 seconds, then send a message so that parents ask them to trigger the incident. It works only if you have control over both.
If this question goes into more details then I can do it above.
Comments
Post a Comment