# Running javascript on an existing webpage

**URL:** <https://forum.kirupa.com/t/running-javascript-on-an-existing-webpage/220236>\
**Category:** web dev\
**Created:** [March 23, 2007, 11:25pm UTC](https://forum.kirupa.com/t/running-javascript-on-an-existing-webpage/220236 "2007-03-23T23:25:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Catalist](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/catalist/32/2148_2.png) [@Catalist](https://forum.kirupa.com/u/Catalist)\
**Post date:** [March 23, 2007, 11:25pm UTC](https://forum.kirupa.com/t/running-javascript-on-an-existing-webpage/220236/1 "2007-03-23T23:25:48Z")

</div>

Hello, I know this is going to sound bad, like I’m trying to phish. But I’m not, so please don’t tell me I am. Just help me out or don’t.

I’m trying to run a simple javascript on a youtube page, off of my webpage. Much like [http://javimoya.com/blog/youtube\_en.php](http://javimoya.com/blog/youtube_en.php), except instead of a graphical interface, I would combine php GET variables to retrieve the location of the .flv and output it so that Flash could read it with LoadVars.  
It would output it like “link=http://…”  
So, the thing I need to overcome is this, how in the world do I run this script on my webpage, but on their webpage at the same time?  
I can do the rest of the javascript’ing but I don’t know how to do this part.

Thanks in advance if you can help me.
