Can any body tell me why my onblur() function is not working in javascript.
Code is pretty simple. Its a text box with an onblur() function showing an alert. I have used it long back.. But i could not figure out why its not working now.. I dont know what the silly mistake i have made. Help me out if possible.. thanks...

VG,

I think you will have to post some code before anyone can say what is wrong with it.

Airshow

<tr>
			<td class="formLabelBold"><label for="label3">Name *</label></td>
			<td class="formDatanobrdr"><input name="nickName" type="text" size="25" title="Name" id="nickName" maxlength="35" oncopy="return false" onpaste="return false" onblur="javascript:alert('test')"> </td>
		</tr>

VG,

Not sure, but this works:

<input name="nickName" type="text" size="25" title="Name" id="nickName" maxlength="35" onblur="alert('test')">

Airshow

it might be because of one of the functions called before arent working so it throws it. maybe its ur browser some browsers dont support onblur

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.