I have made a simple hta page as the entry point to an intranet application. I want to be able to to use a popup window script to open subsequent pages.
My javascript popup looks like this
<script language="javascript">
var popUpWin1=0;
function popUpWindow(URLStr, left, top, width, height)
{
if(popUpWin1)
{
if(!popUpWin1.closed) popUpWin1.close();
}
popUpWin1 = open(URLStr, 'popUpWin1', 'toolbar=no,location=no,directories=no,status=yes,menub ar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
</script>
<a href="javascriptopUpWindow(db_project_list.aspx', 20, 20, 900, 600)" class="menulink">projects
list - all projects</a>
Proplem is when I call it in my hyperlinks the script isn't running. The whole href string between the quotes is getting sent to the target browser.
It's not just this srcipt either. All the scripts on the page are behaving in the same manner. When I change the extenion from .hta to .htm all the scripts behave as they should?
Any ideas?
Regards,
Russ
My javascript popup looks like this
<script language="javascript">
var popUpWin1=0;
function popUpWindow(URLStr, left, top, width, height)
{
if(popUpWin1)
{
if(!popUpWin1.closed) popUpWin1.close();
}
popUpWin1 = open(URLStr, 'popUpWin1', 'toolbar=no,location=no,directories=no,status=yes,menub ar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
</script>
<a href="javascriptopUpWindow(db_project_list.aspx', 20, 20, 900, 600)" class="menulink">projects
list - all projects</a>
Proplem is when I call it in my hyperlinks the script isn't running. The whole href string between the quotes is getting sent to the target browser.
It's not just this srcipt either. All the scripts on the page are behaving in the same manner. When I change the extenion from .hta to .htm all the scripts behave as they should?
Any ideas?
Regards,
Russ