rejetto forum

HTML command

Guest · 3 · 11769

0 Members and 1 Guest are viewing this topic.

HTML command

  • Guest
How create html commands that press created button and internet browser close?
Look like log out commands line.


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
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.
« Last Edit: June 30, 2008, 03:44:41 AM by That_Stevens_Guy »


Ligar

  • Guest
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