rejetto forum
Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: HTML command on June 29, 2008, 01:00:25 PM
-
How create html commands that press created button and internet browser close?
Look like log out commands line.
-
Not possible. The only way to possibly do it is with javascript and even then I doubt it will work on the main browser window. I'm pretty sure most people know how to hit the red X.
-
Insert the part between the lines:
________________________________________________________
<form>
<input type="image" value="Close Window" onClick="window.close()">
<img src="INSERT.jpg">
</form>
<a href="javascript:window.close()">Close Window</a>
________________________________________________________
Also change the name of the image (named here as "INSERT.jpg") as needed and it's location correct! I also attached a close button for you to use, also I would like to credit Javascript Kit for the code without the image that I modified for you and myself to include an image as the button, here's the link: javascriptkit.com/script/script2/closewin.shtml