Evo, konačno sve radi, nacinculirano, pipavo, ali radi :-)
Otvarač samo otvara editor:
Kôd:
function openEditor ()
{
window.open ("editor.html", "editorWin", "width=550,height=400");
}
Pomeranje u donji desni ugao dodeljeno je samom popupu:
Kôd:
function moveBottomRight_openPreview ()
{
if (window.outerHeight)
{
window.moveTo (screen.availWidth - window.outerWidth, screen.availHeight - window.outerHeight);
}
else
{
var innerWidth = document.documentElement.clientWidth;
var innerHeight = document.documentElement.clientHeight;
window.resizeTo (innerWidth, innerHeight);
var deltaWidth = innerWidth - document.documentElement.clientWidth;
var deltaHeight = innerHeight - document.documentElement.clientHeight;
window.resizeTo (innerWidth + deltaWidth, innerHeight + deltaHeight);
window.moveTo (screen.availWidth - innerWidth - deltaWidth, screen.availHeight - innerHeight - deltaHeight);
}
window.open ("preview.html", "previewWin", "width=100,height=100");
}