Modal Examples
Popup - Parent Window
+
function setCookie(sizename,sizevalue){
var expires = new Date();
expires.setTime(expires.getTime() + 12 * 30 * 24 * 60 * 60 * 1000);
document.cookie = sizename + "=" + sizevalue +"; expires="+ expires.toGMTString();
}
function getCookie(sizename){
var name = sizename + "=";
var sizea = document.cookie.split(';');
for(var i=0; i<sizea.length; i++){
var c = sizea[i].trim();
if (c.indexOf(name)==0) return c.substring(name.length,c.length);
}
return "";
}
function openWin(){
var childrenwidth = getCookie("awidth")
var childrenheight = getCookie("aheight")
if (childrenwidth==""){
var childrenwidth = "600"}
if (childrenheight==""){
var childrenheight = "700"}
var asize = "width = " + childrenwidth + ", height = "+ childrenheight ;
myWindow=window.open('http://...','',asize);
}
Operation results
tk/js/tk-modify.js