Posts by Enhardened • 166 points
6 posts
-
0
votes3
answers4878
viewsA: Open Function onclick in Select option
You can get the required result using select’s onchange event. If the parameter required for your function is the select value, you can access it using this.value in the body of the function (as…
javascriptanswered Enhardened 166 -
5
votes3
answers1281
viewsA: How can I restrict downloading files through PHP authentication?
First, the downloadable file could not be publicly available. Then you would need to create a logical route to the downloadable file directory. As an example, I will use /downloads/[arquivo]. In…
-
2
votes2
answers1635
viewsA: z-index does not work on link
As can be seen in https://developer.mozilla.org/pt-PT/docs/Web/CSS/z-index the z-index property applies only to positioned elements. Thus, adding position: relative; to the element #botao should…
-
0
votes3
answers496
viewsA: email with a disfigured table
I once had a similar problem. When html has many characters on the same line (before r n), some email servers break these lines when they reach the string buffer limit (insert n) and can invalidate…
-
1
votes3
answers167
viewsA: Alignment of Divs
For div 3 to always be below div 1, as a footer, you can put it outside and after div 1 - so it will be just below it. For div 2 to be "on top" of div 1, you would need to set position: relative for…
-
2
votes3
answers73
viewsA: as by values within objects
You can use the dataset property. Ex.: var span = document.getElementsByTagName("span")[0]; span.dataset.label; // "Name" span.dataset.icon; // "User" Dataset properties can be read and written.…