I have a javascript book that I've been puttering with for some time now. Just haven't got to a level where I understand it too well.

Come to find out (after reading your reply) that I did have the code right. I just didn't have the button coded properly. I realised this after reading where you said "call the function "onunload" in your popup window". It's all in the fine print, huh.

Thanks again,

Scott