Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javacript popups from hta application

Status
Not open for further replies.

russgreen

Programmer
Dec 7, 2002
86
GB
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=&quot;javascript&quot;>
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=&quot;javascript:popUpWindow(db_project_list.aspx', 20, 20, 900, 600)&quot; class=&quot;menulink&quot;>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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top