# Pass this

**URL:** <https://forum.kirupa.com/t/pass-this/151051>\
**Category:** flash\
**Created:** [June 12, 2005, 10:33pm UTC](https://forum.kirupa.com/t/pass-this/151051 "2005-06-12T22:33:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhamej](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rhamej](https://forum.kirupa.com/u/rhamej)\
**Post date:** [June 12, 2005, 10:33pm UTC](https://forum.kirupa.com/t/pass-this/151051/1 "2005-06-12T22:33:18Z")

</div>

[size=2][size=2]  
[size=3]How can I pass a varible to a get URL to pass to javascript[/size]  
[size=3]example[/size]  
[size=3]

```auto
[/size]
[size=2][size=3]on (release) {[/size]
[size=3]var newW = 800;[/size]
[size=3]var newH = 400;[/size]
[size=3]getURL("javascript:restartScale(newW, newH, finalX, finalY);");[/size]
[size=3]}[/size]
[size=3]

```

[/size]  
[size=3] [/size]  
[size=3]That doesnt work. It does work however if I just use this[/size]  
[size=3]

```auto
[/size]
[size=2][size=3]on (release) {[/size]
[size=3]getURL("javascript:restartScale(800, 400, finalX, finalY);");[/size]
[size=3]}[/size]
[size=3]

```

[/size]  
[/size][/size]  
[/size][/size]
