Jump to content

After clicking reset button redirect the page to homepage


Help!php

Recommended Posts

There is a reset button on my page and it works fine but now I want to let the  user reset the information and redirect the page to homepage. So far this is how the code looks. its in javascript.

 

function formReset()
{
var fields = document.getElementsByTagName( "input" );	

for ( i = 0; i < fields.length; i++ )
{
	if ( fields[ i ].type == "checkbox" )
		fields[ i ].checked = false;
}

document.getElementById( 'rrpmin' ).selectedIndex = 0;
document.getElementById( 'rrpmax' ).selectedIndex = 0;

eraseCookie( _cookieName );

fieldClick();


}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.