Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

onclick event does not work with select option in IE

 
 
prash.marne@gmail.com
Guest
Posts: n/a
 
      01-18-2007
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 !

 
Reply With Quote
 
 
 
Reply

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 prash.marne@gmail.com Javascript 7 01-18-2007 03:35 PM
Option onclick does not fire for IE JehanNYNJ@aol.com 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



Advertisments