Reputation: 29
I am designing an application in ASP.NET which has a Master Page and a iframe. When I click on a link within the Master Page, the link is opened in the iframe, but if I refresh the parent page the iframe loses it's source and returns a blank frame.
How can I retain the iframe src
attribute after refreshing the page like Parallel's Plesk Panel?
Upvotes: 2
Views: 1381
Reputation: 23863
There are a couple of ways to temporary store the URL
of the iframe and then retrieve it on the next page reload.
localStorage
window.name
-- er, no. Ha. Just kidding. That is a bad hack.You might want to read HTML5 Local Storage fallback solutions for more info on those options.
Upvotes: 4