Mi codigo es el siguiente:
Código:
Y para responder al evento el hipervinculo es:<script>
//centran los popups
var windowWidth1 = 1100;
var windowHeight1 = 365;
var windowTop1 = parseInt((screen.availHeight/2) - (windowHeight1/2));
var windowLeft1 = parseInt((screen.availWidth/2) - (windowWidth1/2));
var windowSizeArray = [
"width="+windowWidth1+",height="+windowHeight1+",left="+windowLeft1+",top="+windowTop1+", screenX="+windowLeft1+",screenY="+windowTop1+",scrollbars=0,location=0,toolbar=0,directories=0,toolbar=0,status=0"];
jQuery(document).ready(function(){
$('.newWindow').click(function (event){
var url = $(this).attr("href");
var windowName = "popUp";
var windowSize = windowSizeArray[ $(this).attr("rel") ];
window.open(url, windowName, windowSize);
event.preventDefault();
});
});
jQuery(document).ready(function() {
var link = $('a');
link.css('background-color', '#FFFFFF');
link.css('font-size', '9pt');
link.css('color', '#000000');
link.css('text-decoration', 'none');
});
jQuery(document).ready(function(){
jQuery('#regresar').click(function(event){
window.open('${ctx}/cuerpoAgua/init.action','_self');
});
});
<a id="cap1" href="${ctx}/cuerpoAgua/openwindow.action?forward=capitulo1" rel="22" class="newWindow">


