onclick event does not work with select option in IE

P

prash.marne

Hello,

I have a simple form

<form method="POST">
<select name="activity">
<option value="0">None</option>
<option value="M" onclick="popup_onclick()">Select
Multiple</option>
<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>
</select>
</form>

& my javascript code is

function popup_onclick(){
my_window = window.open
("",'windowname','height=200,width=200');
my_window.document.write("hellow
world");
my_window.document.close();
}

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 !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top