Title: using javascript: links
Last modified: August 18, 2016

---

# using javascript: links

 *  [brunning](https://wordpress.org/support/users/brunning/)
 * (@brunning)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/using-javascript-links/)
 * i’m adding links to my WP sidebar, but have a few which just call javascript 
   functions, like so:
 * and this doesn’t seem to be supported.
 * is there any way to make a link like this work in the wp sidebar?

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

 *  Thread Starter [brunning](https://wordpress.org/support/users/brunning/)
 * (@brunning)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/using-javascript-links/#post-288412)
 * whoops!
 * my html links look like this:
 * `
    a href="javascript:function(var,var,var);"
 * any way to translate this to the WP sidebar?
 *  Thread Starter [brunning](https://wordpress.org/support/users/brunning/)
 * (@brunning)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/using-javascript-links/#post-288413)
 * whoops!
 * my html links look like this:
 * `
    a href="javascript:function(var,var,var);"
 * any way to translate this to the WP sidebar?
 *  [chaaban](https://wordpress.org/support/users/chaaban/)
 * (@chaaban)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/using-javascript-links/#post-288414)
 * can you post your link ?
 *  Thread Starter [brunning](https://wordpress.org/support/users/brunning/)
 * (@brunning)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/using-javascript-links/#post-288416)
 * the href of the link i want to get in there is:
 * `
    openWindow('contact.php','contact','status=no,scrollbars=yes,resizable=yes,
   width=400,height=550');

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

The topic ‘using javascript: links’ is closed to new replies.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [brunning](https://wordpress.org/support/users/brunning/)
 * Last activity: [20 years, 5 months ago](https://wordpress.org/support/topic/using-javascript-links/#post-288416)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
