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?
There are a couple of ways to temporary store the
URLof the iframe and then retrieve it on the next page reload.localStorageUsewindow.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.