0

I have one iframe that holds 4 menu tabs. On 1st menu tab, on the click of link button i wish to redirect to second menu tab of iframe.

The iframe is included in one of the content page of the master page. FYI, i am using an update panel on gridview (where link button is one of the template field)

My Question: How to redirect to parent iframe (that too second tab)

Thanks!

1 Answer 1

1
location.href = top.location.href;

That will set the current frame to its parent's url

Sign up to request clarification or add additional context in comments.

1 Comment

if you want to redirect with a link it would be '<a href="javascript:location.href = top.location.href">Redirect</a>' or if you want to just redirect the page when it loads it would be <script type="text/javascript">location.href = top.location.href</script>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.