Title: javascript popup window name
Last modified: August 18, 2016

---

# javascript popup window name

 *  [grazza](https://wordpress.org/support/users/grazza/)
 * (@grazza)
 * [20 years ago](https://wordpress.org/support/topic/javascript-popup-window-name/)
 * This might not be so trivia for someone more experienced then me. I have used
   a Javascript in my theme to create a new window with some video. See code below.
   It is nothing new and it works on other sites.
 * function NewWindow(url, windowName, w, h, scroll) {
    var winl = (screen.width–
   w) / 2; var wint = (screen.height – h) / 2; winprops = ‘height=’+h+’,width=’+
   w+’,top=’+wint+’,left=’+winl+’ — ,scrollbars=no ,resizable=no’; win = window.
   open(url, windowName, winprops); if (parseInt(navigator.appVersion) >= 4) { win.
   window.focus(); } }
 * This funtion is called from the code below, which resides in my wordpress post.(
   agian nothing new and it works elsewhere)
 * onMouseUp=”NewWindow(‘[http://www.thirtyfiveandsunny.com/work/wp-content/uploads/movies/all_he_needs_medium.mov&#8217](http://www.thirtyfiveandsunny.com/work/wp-content/uploads/movies/all_he_needs_medium.mov&#8217);,’
   thirtyfive.and.sunny’,480,376);”>
 * It all works fine accept the window displays the url of the movie instead of 
   the window name parsed from the ahref.
 * Am I doing something wrong here? I hope someone can explain.
 * cheers
 * Graeme

The topic ‘javascript popup window name’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [grazza](https://wordpress.org/support/users/grazza/)
 * Last activity: [20 years ago](https://wordpress.org/support/topic/javascript-popup-window-name/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
