Upon adding that code, the alert box still appears everytime I relaod the page.
Sorry for not clarifying that last statement. I meant that by adding the 'confirm' to
var alertmessage= confirm("Please click on OK to continue loading my page, or CANCEL to be directed to the Yahoo site.")
instead of
var alertmessage= "Please click on OK to continue loading my page, or CANCEL to be directed to the Yahoo site."
The cookie no longer works correctly upon adding the confirm. Not sure why, again, I am a complete rookie here. Thanks for your help.