Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tim, below are two scraps of code

Status
Not open for further replies.

GriffMG

Programmer
Mar 4, 2002
6,333
FR
Tim,
below are two scraps of code for a button.
With javascript (I've assumed you mean javascript for the client side) you must watch the case v. carefully.

This bit is the code to execute
[tt]
<SCRIPT LANGUAGE=&quot;JavaScript&quot;>

function java_close_window(){
window.close();
}

</SCRIPT>
[/tt]
this defines the button
[tt]
<input type=&quot;button&quot; value=&quot;Yes&quot; onClick=&quot;java_close_window();&quot;>
[/tt]

Does this help?

[smile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top