Click to See Complete Forum and Search --> : how to pop up a new browser window always on top ? here goes the code I have


VladDrakul
10-18-2003, 05:07 AM
what I want is:

I have a page with sereral links to be opened ON THE SAME POP UP WINDOW now the thing is that the first time I click on the link it opens the new browser window but the following links do not put the browser window at THE TOP (its refreshed at the bottom).


here goes the script I have:

function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);


and the link

<a href="#"><img src="imagens/linkts.jpg" width="20" height="16" border="0" onClick="MM_openBrWindow('imagens/agoraphobicnosebleed_alte.html','popupwindow','width=449,height=182')"></a>

thanks

Khalid Ali
10-18-2003, 07:50 AM
get a new window handle e.g

newWin = window.open();
newWin.focus()

should work