dognobbler
Programmer
On the following page
I want the browser to be forwarded to the URL begining
and to pop up another window containing the URL -
The code I am using to do this is show below but it is currently only forwarding and not showing the pop up.
Can anyone tell me why this might be?
<%@ page language="java" %>
<html>
<head>
</head>
<body>
<script type="text/javascript">
var popurls=new Array()
popurls[0]="
function openpopup(popurl){
var winpops=window.open(popurl,"","width=100,height=100,toolbar,location,status,scrollbars,menubar,resizable")
winpops.blur()
window.focus()
}
openpopup(popurls[Math.floor(Math.random()*(popurls.length))])
</script>
<%
String strURL = request.getParameter( "URL" );
String strA = request.getParameter( "a" );
String strG = request.getParameter( "g" );
response.sendRedirect(strURL + "&a=" + strA + "&g=" + strG);
%>
I want the browser to be forwarded to the URL begining
and to pop up another window containing the URL -
The code I am using to do this is show below but it is currently only forwarding and not showing the pop up.
Can anyone tell me why this might be?
<%@ page language="java" %>
<html>
<head>
</head>
<body>
<script type="text/javascript">
var popurls=new Array()
popurls[0]="
function openpopup(popurl){
var winpops=window.open(popurl,"","width=100,height=100,toolbar,location,status,scrollbars,menubar,resizable")
winpops.blur()
window.focus()
}
openpopup(popurls[Math.floor(Math.random()*(popurls.length))])
</script>
<%
String strURL = request.getParameter( "URL" );
String strA = request.getParameter( "a" );
String strG = request.getParameter( "g" );
response.sendRedirect(strURL + "&a=" + strA + "&g=" + strG);
%>