# 通过 JS 在账户下拉菜单中插入 HTML

**URL:** https://meta.discourse.org/t/inserting-html-on-account-dropdown-via-js/100105
**Category:** Development
**Created:** [2018年十月21日 17:38 UTC](https://meta.discourse.org/t/inserting-html-on-account-dropdown-via-js/100105 "2018-10-21T17:38:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Judd\_Cobler1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/judd_cobler1/32/111209_2.png) [@Judd\_Cobler1](https://meta.discourse.org/u/Judd_Cobler1)
#### Post date: [2018年十月21日 17:38 UTC](https://meta.discourse.org/t/inserting-html-on-account-dropdown-via-js/100105/1 "2018-10-21T17:38:50Z")

</div>

Hey there! I’m wondering how I can insert html on the my account dropdown via JS (would need to be called when the account dropdown is loaded). I use api.onPageChange((url) =\> { for a few things but I need a different event to trigger off of for this.

Would prefer to do this with JS and not a plugin.  
[https://gyazo.com/3ccd84dcdda1d012e7f2118c6f77cdd7](https://gyazo.com/3ccd84dcdda1d012e7f2118c6f77cdd7)
