Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > onclick event does not work with select option in IE

Thread Tools

onclick event does not work with select option in IE
Posts: n/a

I have a simple form

<form method="POST">
<select name="activity">
<option value="0">None</option>
<option value="M" onclick="popup_onclick()">Select
<option value="1">Kayaking</option>
<option value="2">Rafting</option>
<option value="3">Snowboarding & Skiing</option>
<option value="4">Hiking</option>
<option value="5">Trekking</option>

& my javascript code is

function popup_onclick(){
my_window =

When a user chooses the form it shows a dropdown menu & when he clicks
on 'select multiple' option
a new window should pop up with words written 'hellow world' in it .
This works fine in Firefox 1.5 but it doesn't work in IE 6.

I don't no wat is the problem.
Anyone have any tips ? Can this be done ? Thanks !

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DOM onClick event (works in FF and does not work in IE) Moses Javascript 3 03-19-2007 04:08 AM
onclick event does not work with select option in IE Javascript 7 01-18-2007 03:35 PM
Option onclick does not fire for IE Javascript 2 04-07-2005 03:49 PM
Selection from One SELECT changes selected option of another SELECT? J. Hall HTML 2 04-21-2004 05:36 PM
select option element onclick? Christopher Benson-Manica Javascript 1 04-20-2004 06:36 PM