Main side: main.html main.js
Sub-page: page.html page.js
When a sub-page needs to be partially refreshed when the master face is closed,
You can now main.html define a hidden<input type= "hidden" id= "refreshbtn" onclick= "freshpage ()"/><!--for child window Refresh current page --
Add in Main.js:
/**
* Refresh the current page
*/
function Freshpage () {
F_open_url ('.. /partycs/tradepartymylist.html?&random= ' +math.random ());
}
Customizing a close button in page.html<input id= "Reback" onclick= "Back ()" type= "button" value= "Off"/>
Add in Page.js:
function Back () {
window.parent.document.getElementById (' refreshbtn '). Click ();
var index = parent.layer.getFrameIndex (window.name);
parent.layer.close (index);
}
and deactivate other ways to close the sub-page
Report:
If the sub-page is generated by the layer plug-in,
$.layer ({
Type:2,
title: ' New member ',
Maxmin:true,
Shadeclose:false,//Turn on Click Mask to close Layer
Area : [' 1200px ', ' 2000px '],
offset: [' 100px ', '],
Move:false,
closebtn: [1, false],
end:function () {
},
iframe: {src: '.. /partycs/tradepartyadd '}
});
The place to be modified isShadecloseproperty is False,closebtnis false;
Web App page Close Child page local Refresh parent page (layer generation sub-page)