Google Chrome Uncaught (in promise) DOMException while playing AUDIO

You’re receiving an uncaught exception because you aren’t handling an error. Audio is an HTMLMediaElement object, and the play() method returns a promise. Therefore I recommend handling the error. One of two errors are possible: NotSupportedError This means that the audio source is not supported by the browser (probably due to audio format) NotAllowedError This is the one I … Read more

reCAPTCHA ERROR: Invalid domain for site key

In case someone has a similar issue. My resolution was to delete the key that was not working and got a new key for my domain. And this now works with all my sub-domains as well without having to explicitly specify them in the recaptcha admin area

CSS Background Opacity [duplicate]

Children inherit opacity. It’d be weird and inconvenient if they didn’t. You can use a translucent PNG file for your background image, or use an RGBa (a for alpha) color for your background color. Example, 50% faded black background:

what do
and do?

Action normally specifies the file/page that the form is submitted to (using the method described in the method paramater (post, get etc.)) An action of # indicates that the form stays on the same page, simply suffixing the url with a #. Similar use occurs in anchors. <a href=#”>Link</a> for example, will stay on the … Read more

CSS Background Opacity [duplicate]

Children inherit opacity. It’d be weird and inconvenient if they didn’t. You can use a translucent PNG file for your background image, or use an RGBa (a for alpha) color for your background color. Example, 50% faded black background:

Edit webpage with javascript trick – how to “unedit”?

You would be able to leave edit mode by changing your command to the following javascript:document.body.contentEditable=’false’; document.designMode=’off’; void 0 I have updated my answer to include a simple working example of my answer, tested in chrome, safari and firefox.  Run code snippet

How do I link a JavaScript file to a HTML file?

First you need to download JQuery library from http://jquery.com/ then load the jquery library the following way within your html head tags then you can test whether the jquery is working by coding your jquery code after the jquery loading script If you want to use your jquery scripts file seperately you must define the external .js … Read more