My code is,\[code\]<html> <head> <title>onclick test</title> <script type="text/javascript"> var googleWindow = window.open('http://www.google.com'); window.onload = change; function change(){ alert('Hello'); } </script></html>\[/code\]The above code is working fine. It calls the change function when the window is loading. I am trying add onload event to the googleWindow but it is not working.\[code\]<html> <head> <title>onclick test</title> <script type="text/javascript"> var googleWindow = window.open('http://www.google.com'); googleWindow.onload = change; function change(){ alert("Hello'); } </script></html>\[/code\]How do i add an event to the googleWindow?Thanks,