By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,660 Members | 1,939 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,660 IT Pros & Developers. It's quick & easy.

help - onChange and Confirm

P: n/a
Hi,
I have a combobox with a list of links and I want to redirect (after
confirming it) to a link with onChange.

I use:
onChange="if (confirm('do you want to redirect?'))
{ window.location.href='yespage.asp'};

I have this problem: if I change and confirm=true the list in combobox
is selected, but i don't succeed in return to previous value if on
confirm i choose "no".

Hoping my english is no too bad :-)
Thanks!
Simo - Italy
Jan 23 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
SimoRed wrote:
I have a combobox
There is no such thing as a combobox in HTML.
with a list of links and I want to redirect (after
confirming it) to a link with onChange.
Bad idea. Use a styled `ul' element instead.
PointedEars
Jan 24 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.