tantachar07 Posted December 4, 2006 Share Posted December 4, 2006 I am trying to do the Onclickselfclose in a button . . . code goes here <form><input type="button" value="close" onClick"self.close()"></form> And with difficulties . . . Link to comment Share on other sites More sharing options...
real_illusions Posted December 4, 2006 Share Posted December 4, 2006 i'm guessing your trying to close the window that the user is in by clicking a link?if so, then all you need is this:<a href="java script:window.close();">Close This Window</a> Link to comment Share on other sites More sharing options...
aspnetguy Posted December 4, 2006 Share Posted December 4, 2006 or to fix your code do this <form><input type="button" value="close" onclick="self.close()"></form> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now