Javascript works in Chrome but not IE or Firefox?

Just add return false ; after the toggleBlock call.

Additionally to Furqan's solution: You should never trigger JavaScript in the href attribute. It's a non-standard method that easily leads to errors, especially if you don't know what you are doing. Use onclick instead and put a valid URL in the href attribute for non-script users, or use href="#" if you don't don't care about non-script users.

Try this: HTML: JavaScript: function toggleBlock(pstrID) { var block = document. GetElementById('d' + pstrID), img = document. GetElementById('i' + pstrID); if ( block && img ) { if ( block.style.

Display === 'none' ) { block.style. Display = 'block'; img. Src ='arrowdown.

Gif'; img. Alt = 'style. Display = 'none'; img.

Src = 'arrowright. Gif'; img. Alt = 'Show'; } if ( document.location.href.

IndexOf('mk:@') === 0 ) { block. InnerHTML = block. InnerHTML; } } return false; }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions