JavaScript

mz70

New member
JavaScript

Hi all, What I want to do is open a child window, and in this window I will have a link to some page. :When I will click on the link, 2 things will happen: 1. the child window will close 2. the linked page will apear in the parent window Thanks for the help
 

neatsun

New member
תשובה.

הקוד שאתה צריך, בחלון ה popup יהיה משהו כמו:
<span style="text-decoration:underline;cursor:hand" onclick="opener.location.href=´yourfile.html´;close()">link</span>​
 

mz70

New member
a problem

hi, thanks for the answer , but whem I try to write the code it says that opener.location is not an object. can you help? thanks.
 

neatsun

New member
ok

הקוד הנ"ל אמור לעבוד אם פתחת את חלון ה popup באמצעות javascript. אם פתחת על ידי a href הוא לא יכול לזהות מי החלון הפותח שלו.
 
למעלה