PDA

View Full Version : confirm


ikkon
10-18-2002, 04:49 PM
I have a if statement ...and on else...i want to pop up a browser confirm window....

which is ithink

getURL(javascript:window.comfirm("hello"));

but i want to make it so if they hit ok it will send them to a page

and on cancel send them to a different page

i have tried a if statement but then the confirm will not popup...


any help?? please

jimburton
10-18-2002, 06:14 PM
getURL("javascript:window.confirm('hello') ? location.href='alrighty.html' : location.href='ohno.html';");

ikkon
10-18-2002, 06:46 PM
thanks alot.....it works great