Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java script open new window

Status
Not open for further replies.

killbuzz

Technical User
Mar 21, 2001
103
US
Hi all, I know i submitted this question once and i got the answer but for some reason its not working. ok this is what i got.

I have this index page all made of flash. One of the Flash buttons "when clicked it opens a newpage that has some songs on it". this new page is also done with flash, "its a flash media player i made" I must be doing something wrong cause it doesnt want to open a new page when i click on the link. i have tried doing it all on my HD in the same directory and on my website in the same directory. This is what i got;

for the flash button i put this:

on(release){
getURL("javascript:popUp('player.html')");
}

On the HTML PAGE that has this flash media player i made that i want to open when clicking the flash link i put this at the <HEAD> of the HTML has this:
<script language=&quot;javascript&quot;>

function popUp(url){
popUpWindow=window.open(url,null,&quot;width=500,height=400&quot;)
popUpWindow.focus()

}
</script>

Im sure its something really simple, i just over looked some minor detail.. Anyways I hope someone can help me..
Thanks
 
No need to respond I just notice what i done, DUH!! I put the script in the wrong Page Im an idiot.. Sorry for putting a stupid questions on the board.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top