• Guest, The rules for the P & N subforum have been updated to prohibit "ad hominem" or personal attacks against other posters. See the full details in the post "Politics and News Rules & Guidelines."

HELP! Javascript!

Tweak155

Lifer
Sep 23, 2003
11,410
242
106
I am trying to get a button in JavaScript to execute some code (i.e store cookies) then redirect to a new page.

It stores the cookies properly but I have an issue with getting a new window to load in the same frame. The page that I want to load is currently stored on my hard drive and will then be uploaded to a server with the same name. The pages are all stored in the same directory.

I tried to use:

document.href
document.location.href
window.location

Any help? I'm stuck :(
 

ASK THE COMMUNITY