Archive for the 'javascript' Category

onfocus not working in Chrome

That is. I am just trying to adjust some old project, working fine only in IE8, to Firefox and Chrome.   Workaround very simple  –  change onfocus to onclick.

click() not working in Chrome

  I have code like 1: var link = document.getElementById("myLink"); 2: link.click(); and it is working in all browsers (really tested in IE8 and FF9) but not in Chrome.   Stackoverflow has three questions about this issue without workaround. http://stackoverflow.com/questions/5015893/onclick-parent-getelementbyid-click-not-working-in-chrome http://stackoverflow.com/questions/1938356/chrome-browser-action-click-not-working http://stackoverflow.com/questions/7857289/click-not-working-in-chrome People speak about some security limits. And voila – solution: 1: var link [...]

How to close parent window in Firefox and Chrome

.. and possible also in Opera, Safari etc. The problem: 1: parent.window.close(); that working well in IE8 but not working in Firefox and Chrome. Some state that for security reasons. Solution (lol): 1: top.window.close();   A little more details: I have a page that opens popup using showModalDialog(….) function. Inside popup i have a frameset(old [...]

How to edit firefox configuration settings

Type in address bar about:config and press Enter.

How to allow only numbers(digits) to input

This is javascript function that doesn’t permits to input characters others than number:

DOM: how to delete table row(s)

DOM: how to delete table row(s)

DOM:how to remove select options

DOM:how to remove select options


wordpress seo