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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close Button 2

Status
Not open for further replies.

dtran

Programmer
Jun 25, 2001
29
US
Hi all,
I'm trying to eliminate or either grey out the close button that is on the upper right corner of a web page. I am primary using IE. I have found the window.open function to eliminate the menubar but it still leaves the min, max and close button.

Can anyone help?

Thanks in advance.
 
add 'fullscreen' to the window.open command.
[don't forget to create a 'close window' option,
because many of your users will not know how
to get rid off your program ;-)].

br
Gerard
 
I also know about the 'fullscreen=yes' for the window.open command, but I don't want my application to be fullscreen because of various other issues.

And yes, I do have a way for them to get out of my application.

Any other suggestions?
 
Hi,

you could write an HTA file, then you could have a window without borders, buttons or even a sysmenu (upper left corner). Try this code to see an example (save with an hta extension):

<HTML>
<HEAD>
<TITLE></TITLE>
<HTA:APPLICATION ID=&quot;testhta&quot;
APPLICATIONNAME=&quot;hta1&quot;
BORDER=&quot;none&quot;
BORDERSTYLE=&quot;normal&quot;
CAPTION=&quot;yes&quot;
ICON=&quot;&quot;
MAXIMIZEBUTTON=&quot;no&quot;
MINIMIZEBUTTON=&quot;no&quot;
SHOWINTASKBAR=&quot;yes&quot;
SINGLEINSTANCE=&quot;no&quot;
SYSMENU=&quot;no&quot;
VERSION=&quot;1.0&quot;
/>
</HEAD>
<BODY scroll=&quot;no&quot;>
<P>so?...</P>
</BODY>
</HTML>

Just copy somewhere and doubleclick, it does not have to be served. Of course you need IE and you will get promted, but just the first time you open it.

Bye.
 
Yahve, i like this! never did this before, i see a lot of use in my own applications.
br
Gerard
 
Gerard,

I like them too, especially since if you run them directly (not thru a server) they do not have security limitations, you can access almost anything. I've used them to create nice a little timer that allows me to EASILY keep track of the time I spend on different projects (great for billing), first I kept info in a text file but I moved it to a database.

MS' site as more info, but not as much as I had hoped for:

Bye.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top