3.2.0

popup window

I am working on a popup window while I am testing AW controls. The following javascript works fine:

var win;
function pop(){
win=window.open('','');
win.moveBy(100,100);
}

However, if I use a separate function to operate "win.moveBy(100,100);", I got error.

var win;
function pop(){
win=window.open('','');
}
function move(){
win.moveBy(100,100);
}

What am I wrong?

Thanks,
mrhsh
June 16,
When I do this I normally do something like:

function pop(name) {
  window[name] = window.open(',");
}

function move(name) {
  window[name].moveBy(100,100);
}
Mike
June 17,
Thanks Mike! I tried but got an error. How do you declare "window[]"?
mrhsh
June 17,
Sorry Mike! It's my mistyping fault. It works in your way. Thanks again!
mrhsh
June 17,

This topic is archived.

See also:


Back to support forum