Jump to content

My function fails in chrome


unemployment

Recommended Posts

function backspace_delete(e, delete_ele_id) 
{
if (!e) 
{ 
	// IE reports window.event instead of the argument
	e = window.event;
}
var keycode;

if (document.all) 
{
	// IE
	keycode = e.keyCode;
} 
else 
{
	// Not IE
	keycode = e.which;
}

if (keycode == 8 && with_field.value == '')
 {
	if (document.all)
	{
		//IE
		removeElementById(delete_ele_id);
	} 
	else 
	{
		//Non IE
		removeElementById(delete_ele_id);
	}
}
}

Link to comment
https://forums.phpfreaks.com/topic/239261-my-function-fails-in-chrome/
Share on other sites

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.