xorpower
xorpower

Reputation: 18963

Redirect to parent iframe using javascript

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!

Upvotes: 0

Views: 466

Answers (1)

Joseph Marikle
Joseph Marikle

Reputation: 78520

location.href = top.location.href;

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

Upvotes: 1

Related Questions