# Javascript and open window

**URL:** https://forum.kirupa.com/t/javascript-and-open-window/157869
**Category:** Uncategorized
**Created:** [August 4, 2005, 8:51pm UTC](https://forum.kirupa.com/t/javascript-and-open-window/157869 "2005-08-04T20:51:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![livestyle](https://avatars.discourse-cdn.com/v4/letter/l/48db29/32.png) [@livestyle](https://forum.kirupa.com/u/livestyle)
#### Post date: [August 4, 2005, 8:51pm UTC](https://forum.kirupa.com/t/javascript-and-open-window/157869/1 "2005-08-04T20:51:45Z")

</div>

Hi all,  
I would like to ask everyone for help with this easy code.  
I have a code, by which I open the page in a new window.

[color=darkslateblue]on (release) {  
if (checkm == this.\_x) {  
if (\_name == “dragf0”) {  
getURL(\_parent.\_parent.XMLdata.firstChild.firstChild.attributes.dest, “\_self”);  
} else {  
if (eval((“_parent.x_” add \_name) add “.attributes.dest”) != null) {  
getURL(eval((“_parent.x_” add \_name) add “.attributes.dest”), “\_blank”);  
}  
if (eval((“_parent.x_” add \_name) add “.attributes.dest2”) != null) {  
getURL(eval((“_parent.x_” add \_name) add “.attributes.dest2”), “\_self”);  
}  
}  
}  
}[/color]

But I need to open the window by javascript and then closer define like in this code below

[color=darkslateblue]on (release) {  
getURL (“javascript:NewWindow=window.open(‘ShowPopup.php’,‘newWin’,‘width=533,height=800,left=,top=,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No’); NewWindow.focus(); void(0);”);  
}[/color]

Can someone help me to change my code, please?  
I appreciate any help, thanks.
