-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsandframe.js
More file actions
17 lines (16 loc) · 754 Bytes
/
Copy pathsandframe.js
File metadata and controls
17 lines (16 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//IFRAME RELOAD
/*
function reload_message_frame() {
var frame_id = 'myIframe';
if(window.document.getElementById(frame_id).location ) {
window.document.getElementById(frame_id).location.reload(true);
} else if (window.document.getElementById(frame_id).contentWindow.location ) {
window.document.getElementById(frame_id).contentWindow.location.reload(true);
} else if (window.document.getElementById(frame_id).src){
window.document.getElementById(frame_id).src = window.document.getElementById(frame_id).src;
} else {
// fail condition, respond as appropriate, or do nothing
alert("Sorry, unable to reload that frame!");
}
}
*/