0 Replies - 1147 Views - Last Post: 10 March 2008 - 12:18 AM

#1 no2pencil  Icon User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6560
  • View blog
  • Posts: 30,699
  • Joined: 10-May 07

Self Close a Browser from a styled button

Posted 10 March 2008 - 12:18 AM

Description: Use the Javascript event self.close() to close the current Web Browser inside of a styled button.
<input type="button" style="background-color:#FFCC66; color:#000000;font-family:arial,tahoma,sans-serif; font-size:18px; width:175px; height:35px" value="Close Window" onclick="javascript:self.close();">

Is This A Good Question/Topic? 0
  • +

Page 1 of 1