Hello,
I have a iframe inside the page and I want to redirect parent page of iframe to another page from iframe.
using javascipt it first load page and the redirect to other page.
I want to redirect page to parent address.
Redirect page from iframe to parent
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 5, 2013, 1:48 AM EDT
using javascript:
window.top.location = "http://google.com";
without using javascript
Click here
Click here
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 5, 2013, 1:50 AM EDT
Could please provide your code?
Regards,
Iftikar
Riyaz AkhtarRank #2,275 · 619 reputationPosted Jul 5, 2013, 2:12 AM EDT
window.top.document.getElementById("formname").submit();
below code to redirect different page
window.top.location.href = "page name";