Click to See Complete Forum and Search --> : Can't get Prompt to trigger If/Then


Fredric
01-24-2003, 03:04 PM
I can certainly be qualified as a rookie and need some help.

On the start of a page I have attached I have a prompt that I would like to trigger the If/Then statement that is based on the reponse to the promt. The promt works, and if I take out the "OnClick" part, I can get the If/Then to work upon page load. What am I missing to get them to work together?

Also, though I could get the If/Then to function upon page load, it opens the new page in a new window. How do I get it to open in the same window. Otherwise, the Promt window was staying open over the previous window.

Any advice would be greatly appreciated. Thanks.

gil davis
01-24-2003, 03:45 PM
I have repaired your page to the best of my understanding of your intentions.

Fredric
01-25-2003, 10:39 AM
Thank you Dave & Gil.

I included the whole page because I took everything else out other than a few header lines and the java script.

Yes, the Javascript Prompt() method and the "Then" is implied I suppose.

Gil - Thanks for your response, though your script doesn't seem to load the target page either.

I published a sample page at another one of my sites to see if it would make a difference. It didn't. It can be found at http://www.sesite.com/private_entry.htm

Fredric
01-26-2003, 10:27 PM
Dave -

Thank you for your response. Tried your script, but still having trouble. I updated my page at http://www.sesite.com/private_entry.htm

It still doesn't link to the target page. I have the script in the head and the link in the body. I believe that is correct. Any other thoughts?