close the browser of my web application

S

sousimou

i want to quit my browser by the command buttum on javascript but this
dont work
please helpe me and correct me this script

<html>
<head>
<title> </title>
</head>
<body>
<p><object classid="CLSID:D7053240-CE69-11CD-A777-00DD01143C57"
id=CommandButton1 width=96 height=32 >


<OnClick="javascript:window.close()">
</object> </p>
</body>


</html>
 
?

=?iso-8859-1?Q?Kim_Andr=E9_Aker=F8?=

i want to quit my browser by the command buttum on javascript but this
dont work
please helpe me and correct me this script

<html>
<head>
<title> </title>
</head>
<body>
<p><object classid="CLSID:D7053240-CE69-11CD-A777-00DD01143C57"
id=CommandButton1 width=96 height=32 >


<OnClick="javascript:window.close()">
</object> </p>
</body>


</html>

First of all, you're over-complicating it. All you really need is
something like this:

<form action="">
<button style="width: 96px; height: 32px"
onclick="window.close()">Close</button>
</form>

Second of all, you really should be asking questions that only apply to
JavaScript in
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top