Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onClick popup within <option>

Status
Not open for further replies.
May 9, 2000
446
GB
Hi I've got a <Select> and I want some of the <options> to have an onclick event to open a new window. I've tried
Code:
<option value="myvalue" onclick="javascript:popup(mypage.asp)">MyValue</option>

but it doesn't seem to work??? Can anyone tell me whether I can only apply onClick to the entire select box or can I do it to individual options???

Cheers
 
Remove the string "javascript:" from the onclick. It's not needed - and is the cause of your problem.

Cheers,
Jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top