onclick event in select HTML not working in Safari

后端 未结 4 888
半阙折子戏
半阙折子戏 2021-01-15 20:19

I have an ASP.NET dropdown list control with onclick and onchange JavaScript events. Both work in IE, Mozilla, Opera and Chrome, but not in Safari.

4条回答
  •  攒了一身酷
    2021-01-15 20:54

    Sometimes you need to add preference to the JavaScript function as "javascript:"; for example:

    
    

提交回复
热议问题