Hang on a minute, my comment starting "no it doesn't work" came in after your comment starting "take this script I wrote".
Ok, I have tried your code and yes thats the effect I'm getting where doing a simple document.write removes the two buttons on the screen. And yes, it...