W
Weedget
Hello!
I've small problem with my JS code.
On my page i've button which executes code from below:
[ciach]
var newWindow;
var props =
'scrollBars=1,resizable=1,toolbar=0,menubar=0,location=0,directories=0,width=700,height=400';
newWindow = window.open('http://mapa2.szukacz.pl', 'Szukaj',
props);
[ciach]
and now:
on opened page there are many links, one of them has onclick event and
click calls function
message('query','')
i tried to call this function like this newWindow.message('query',''),
but i got error that message isnt function - this error looks like
browser searches this function on main (first) page not on child -
opened by window.open
whats wrong in my code? maybe i cant call functions from other hosts?
could you help me, please?
regards
chirs
I've small problem with my JS code.
On my page i've button which executes code from below:
[ciach]
var newWindow;
var props =
'scrollBars=1,resizable=1,toolbar=0,menubar=0,location=0,directories=0,width=700,height=400';
newWindow = window.open('http://mapa2.szukacz.pl', 'Szukaj',
props);
[ciach]
and now:
on opened page there are many links, one of them has onclick event and
click calls function
message('query','')
i tried to call this function like this newWindow.message('query',''),
but i got error that message isnt function - this error looks like
browser searches this function on main (first) page not on child -
opened by window.open
whats wrong in my code? maybe i cant call functions from other hosts?
could you help me, please?
regards
chirs