I am developing web application for smart phones using tapestry. I have an issue, when open a new window at the time of page loading, but it didn’t open.
I am using following code to achieve that:
<script type="text/javascript">
javascript:OpenWindow('${pname}',340,360);
</script>
Sample.js:
function OpenWindow(AppName,ww,hh) {
window.open("layout/play/"+AppName.toLowerCase()+".html","a"+AppName+"Window","width="+ww+",height="+hh+",menubar=no,locationbar=no,resizable=yes,status=no,scrollbars=no");
}
Please any one help me.
don’t do this
do this instead