Title: using javascript page link as new window
Last modified: August 19, 2016

---

# using javascript page link as new window

 *  [mitchaz](https://wordpress.org/support/users/mitchaz/)
 * (@mitchaz)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/using-javascript-page-link-as-new-window/)
 * I want to use this javascript (below) on a page link (not post) so that it just
   pops up the bathtub designer in a separate window. would I do this as a template
   and just have that script in it? how would I assign the link to use the function….?
 * <script LANGUAGE=”Javascript”>
 *  function popupwindow(){
    window.open(“[http://www.rebath.com/designBath.htm&#8221](http://www.rebath.com/designBath.htm&#8221);,””,”
   height=625,width=680,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,left
   =100,top=100″)}
 * </script>

The topic ‘using javascript page link as new window’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [mitchaz](https://wordpress.org/support/users/mitchaz/)
 * Last activity: [18 years, 6 months ago](https://wordpress.org/support/topic/using-javascript-page-link-as-new-window/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
