Maybe, but I'm pretty sure browsers block the clipboard functions unless they were triggered via user input. I don't know if a page load counts as a valid trigger.
> Conditions of having this behavior enabled vary from one browser to another, and have evolved over time.
If you're not running based on a click event, you'll certainly fail.