View Single Post
Old 12-02-2013, 07:47 PM
lamy's Avatar
lamy lamy is offline
Junior Contributor
Join Date: Jan 2003
Location: under your bed
Posts: 347

each browser being a different animal on its own behaves differently, you need to do a test on several (major/popular) browsers

now to fix that code of yours you can do this, tried it with Chrome

function convertquotetospace(charCode) { 
	if (charCode == 39)
		charCode = 94;
	return charCode;

document.onkeypress = function(evt) {
	evt = evt || window.event;
	var charCode = evt.which || evt.keyCode;
	charCode = convertquotetospace(charCode);	
	return charCode;
slow down when you need to hurry, stop when you need to move on,
look back when you need to forget, or you might slip and leave sanity
Reply With Quote