Title: Javascript
Last modified: August 22, 2016

---

# Javascript

 *  [robgon1971](https://wordpress.org/support/users/robgon1971/)
 * (@robgon1971)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/javascript-22/)
 * Hi there,
 * First of all, sorry about my english.
    I have a problem with some javascript 
   functions i have included in my web. In my local installation they works fine,
   i have the javascript code at the beginning of every page is used and those functions
   are used on the onclick event:
 * 
 * But when i upload those pages to my hosting, the code onclick=”function();” dissapear
   when i update the page.
 * Best regards.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [robgon1971](https://wordpress.org/support/users/robgon1971/)
 * (@robgon1971)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/javascript-22/#post-5277170)
 * Update:
 * This is the code i’m using to call the javascript function:
 * `<a class="xxxxxxx" title="xxxxxxxxxxxxxx" onclick="function;">xxxxxxx</a>`
 * And the ‘onclick=”function;”‘ is the code that disappear when i update the page.
 *  [gotgotf](https://wordpress.org/support/users/gotgotf/)
 * (@gotgotf)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/javascript-22/#post-5277199)
 * Use the TinyMCE Advanced plugin –
    there is an admin page (Settings->TinyMCE 
   Config) that let you add supported tags using the extended_valid_elements option.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Javascript’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [gotgotf](https://wordpress.org/support/users/gotgotf/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/javascript-22/#post-5277199)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
