closing and opening new windows

by Nate Harel <nharel(at)consultant.com>

 Date:  Tue, 03 Jul 2001 10:48:28 -0400
 To:  hwg-techniques(at)hwg.org
  todo: View Thread, Original
Hi all,

I have been trying to do something that works well in IE but fails in NN.

I have a page that is used to purchase a product. On clicking the submit 
button, I want the current window to kick off a new window and close 
itself. You can see this page at:

http://www.redroverclothing.com/pages/HC1.html

=================================================================
The javascript code called for in the Form is listed below:

function selectthisone(setfield, whatisit)
{
var formset = setfield;

formset.value=whatisit;
}

function validate(field, comment)
{
var formset = field;

if ( formset.value != "" )
         {
         Window.close();
         return true;
         }
else
         {
         document.write(comment);
         window.setTimeout('history.back()', '1500');
         return false;
         }
}

==================================================================


Thank you. This list has been a lifesaver for me. You folks are great!


Nate


		---------------------------------------------------
			 Nate Harel
		        NetTech Services
		        66 Carol Road
		  Needham, MA  02492-1108
		    Tel: 1-781-559-8176
		 Toll Free: 1-877-567-8936
		   FAX: 1-877-567-8936
		 Email: nharel(at)consultant.com
			www.nettsv.com
		----------------------------------------------------

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA