i have a popup window thats got a submit button on it. when it is clicked, i want it to close automatically.. but i dont know how.. anyone please help...

Recommended Answers

All 2 Replies

Best to ask in the JavaScript fourm.

your looking for something client side not server side

add the onclick attribute to the button properties

Eg:
<form name=form1 action="FormActionHandlerFile" method="post/get">
......
<Form elements come here>
......
<input type = Submit value = "Submit Data" onclick="window.close()">
</form>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.