html - Window.close script doesn't seem to close -
having trouble getting code close window. can help? when "return" clicked goes blank page.
<form method="post" action="http://ww8.aitsafe.com/cf/add.cfm" target="newwindow" onsubmit="window.open('', 'newwindow','width=800,height=500,'+'scrollbars=yes,status=no,toolbar=no,menubar=no,top=200,left=200')"> <p> <input type="hidden" name="userid" value="a8403475"> <input type="hidden" name="return" value="window.close"> <input type="hidden" name="thumb" value="logo.png"> <select name="productpr"> <option>- select size -</option> <option value="size one:9.99">size 1 - 9.99</option> <option value="size two:12.99">size 2 - 12.99</option> </select> <input type="submit" value="add cart"> </p> </form>
defining code value of hidden input field nothing in case.
create button , similar this: <button type="button" onclick="window.close();">close</button>
you didn't specify when want window closed...
Comments
Post a Comment