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!

Mp3 Player windows wont work

Status
Not open for further replies.

cwiggins418

IS-IT--Management
Oct 19, 2006
4
US
I have tried a couple of new things. However can someone please tell me whey this doesn't work:

<script language="javascript">
<!--



function OpenBeat {
if (typeof newWin=='undefined' || !newWin || newWin.closed) {
newWin = window.open('BeatWin', 'width=120,height=50,resizeable=yes');
} else {
newWin.close();
newWin = window.open('BeatWin', 'width=120,height=50,resizeable=yes');
newWin.focus();
}


}
</script>
Thanks in advance
 
Thank you very much Dan. It did help. Is this code the best (easiest) way to controll having only one pop up window open at a time? Thanks again for your help I'm really very new at JS
 
You don't need the code at all like you do - because you are specifyinng a window name ("Beatwin"), the same window will be re-used all the time, so you can simply have 1 window.open call.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
I did resolve it. Thank you very much Dan. Java is still very new to me because I come from "old school" Basic language. I know dont laugh. I just dated myself as well, didn't I? Anyway, thanks again. I may call on you guys again and I continue to experiment.

-Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top