You can pass data from your html component to your page and from your page to the html component by using onMessage and postMessage as shown in the example and API links below.
Please note however, that if your html code is from a third party then Wix will not be able to provide you with support for it and you will need to go back to your third party code provider for more help with it.
Wix cannot provide support for external codes that were not created or tested with Wix.
If you are experiencing an issue with your code snippet, please contact the provider directly.
Plus, as also noted on that above linked page too, is that all iframes are sandboxed on the free version of Wix, whereas on premium sites they are not sandboxed.
To do it within the html code, then you can add something like this to your existing html code.
window.parent.location.href = "http://www.my-new-url.com"
Thank you for your reply, i tried with above solution but still it is displaying redirect url with in iFrame it self
Hii...i want to set attribute value of iFrame how can i set iFrame like <iframe sandbox="allow-top-navigation" src="http://google.com/"></iframe> this in wix html component to redirect url to parent page