Javascript Popup Button source code button onclick popup button
<img src="images/conf.png" height='25' width='60' onClick="redirectPage('showdata.php?yr='+'<?php echo $year;?>'+'&mn='+'<?php echo $month;?>'+'&d='+'<?php echo $i;?>'+'&flr='+'<?php echo $j;?>'+'&status='+'<?php echo 1;?>');" />
<script type="text/javascript">
function redirectPage(url,data,w,h)
{
var w = 325;
var h = 300;
var left = Number((screen.width/2)-(w/2));
var tops = Number((screen.height/2)-(h/2));
var myWindow=window.open(url,'data','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+tops+', left='+left);
//window.open(url,name,features);
myWindow.focus();
}
</script>
0 comments:
Post a Comment