Click here to Skip to main content
16,018,938 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I can refresh I frame using

frm.location = frm.location
frm.location = frm.location.href


both of them works

but when location has hash they doesnt.

Like if url is like : www.codeproject.com (Works)
but if url is like : www.codeproject.com#somehash (Doesnt work)

So I coded like this

var loc = frm.location.href.split('#');
frm.location.href = loc[0];


if (loc[1] != null && loc[1].length > 0) {
    frm.document.location.hash = loc[1];
}



but its also dont work all the time. Any idea ?
Posted

1 solution

Hi
Please try following:

C#
document.frames('myInnerFrame').location.reload(true);



Please do let me know, if you have any doubt.

Please provide "Vote" if this would be helpful, and make "Accept Answer" if this would be correct answer.:rose:

Thanks,
Imdadhusen
 
Share this answer
 
Comments
Xmen Real 26-Oct-10 5:02am    
awesome, I spent whole day searching and trying for refresh. Finally a good one. Thanks
raju melveetilpurayil 26-Oct-10 16:09pm    
good one ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900