Window.Open AND Window.Navigate

~J~

~J~

Soldato
Joined
20 Oct 2003
Posts
7,558
Location
London
Can anyone help me with this little problem:

Got a webpage (ASP) that when run, want it to navigate to a new page on the current window AND open up a popup to an alternate one.

At the moment I've got the following code:

PHP:
strLocation = "http://"
openlink(strLocation) 
function openlink(link)
 
%>
<SCRIPT language='javascript'>
window.open('<%=strLocation%>');
window.navigate('index.asp?id=<%=Encrypt(id)%>');
</SCRIPT>

Calling the "Open" first, which should open the popup website before executing the current window navigation.

But I'm not getting the popup. Any ideas on what I'm doing wrong?
 
Back
Top Bottom