Coding a popup for an HTA application

E

Ellen

I want a small informational window to popup for a link, and I'd like it to
stay on top even if the window behind is clicked. So far I have this in the
main page:

<a href="disk-1.htm"
onclick="window.openthis.(href,'popupwindow','width=400,height=300,scrollbars,resizable');
return false;" application="yes">Here is the link to the popup window.</a>

Sorry, the breaks for word wrap aren't very good here- there is no space
between window.openthis. and (href,

And in the popup (disk-1.htm) I have:

<body bgcolor="#00FF00" onBlur=self.focus()>

This gives a script security warning when I run the HTA, but does keep the
popup on top until closed if I allow the ActiveX scripts. The
application="yes" should be overriding the security warning, but isn't in
this case. When I use just the link coding without the onBlur=self.focus() in
the popup. I don't get any warnings.

Is there a better way to have the popup behavior I want without the security
message?

Many thanks in advance
Ellen
 
E

Ellen

I found this- works fine, if a little more strident than I had wanted.

<a onclick="alert('Switch to the other disk!')";>Descriptive Text</a>

Has anyone any other ideas? I'm using FP 2003, and IE 6.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top