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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New Window Closes on Click????

Status
Not open for further replies.

tanyakumar

Technical User
Feb 25, 2001
4
0
0
IN
Hi Im using javscript to open a new window. On that window I have a link that loads up an mp3 playlist in my default player but as soon as I click on the link it closes the window. How to I keep my window opened?

Thanks
 
Hi Tanya,
I am sorry if I have not understood your problem correctly.
Anyway my advice would be have 2 methods namely
openWindow () and openMusic () for opening the Popup Window and Opening the Music File respectively. Note that the Window Variable is different in both the methods. Now when u click on the music Link in the Popup Window, depending on the Client Browser Settings, the Windows Pop up will popup or the Music Player will start Playing the Music. I hope this helps you in solcing your issue.

function openWindow ()
{
var popWindow = window.open("PopUp.jsp","NewApp","toolbar=no,scrollbars=yes");
return;
}

function openMusic ()
{
var musicWindow = window.open("music/Test.mp3","MusicApp","toolbar=no,scrollbars=yes");
return;
}
All the Best [thumbsup]

Thanks and regards,
Pazhanikanthan. P
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top