Skip to content

Tag: html

Working with event handlers in Javascript

Am working on with event handlers in JavaScript, however, have encountered a problem on my way, on the above code, I have got access to all the div elements in my html, and some hidden text which I want it to be displayed once the event handler which I have passed to the divs is performed, but once one div

Close all collapsible content at once

I have the following code: There are two collapsible buttons called First question and Second question. You click on one of them to show the content and you click again to hide the content. If you opened multiple collapsible contents you have to click on each of them to close all. I need a button that allows …

JS background with Html text

I have found a js background and now I would like to have this background on all my php files. The problem is that html code goes either under js or behind it. How can I solve this? JS file: Another Php file where I included js: Css for Php file: Answer At the moment the cavas which ‘paints’ the

‘showPDF’ is declared but its value is never read

some background information: i have a button in my html file that should activate the showPDF function but it tells me that its value is never read javascript: the button in my html looks like this: help would be greatly appreciated as i can’t seem to find any answers in different questions Answer You j…