Question

126  How to make editable div or paragraph by double clicking? 

I want to make a simple div which has to become editable when a user double-clicks on it. I wish div to turn into element like text field with cursor to the text where double-click...More

Save  ★   |  Dislike (0)  • Comment  • 14 views

  #Javascript   /  Posted by: ahsafudari

Post topic or question




Question

125  How to make elements like div, table and span support focus/blur? 

Since we know that elements such as input, button and select support focus/blur how can I make other elements like div, b, ul and span to accept blur and being focuseable? ...More

Save  ★   |  Dislike (0)  • 1 idea  • 41 views

  #Javascript   /  Posted by: migambijee

Post topic or question




Question

124  Whats the effects of shortening form.elements.name to form.name? 

I am working with many forms in single page but I'd prefer using short notation form.name instead of form.elements.name Is there any issues if I keep shortening?

Save  ★   |  Dislike (0)  • 1 idea  • 14 views

  #Javascript   /  Posted by: alshakul

Post topic or question




Question

123  How do default actions work in browser - How to prevent them? 

I'm currently learning how to handle events, in that case There are some events and actions behave unexpectedly which force me to understand deeply how do browser default actions w...More

Save  ★   |  Dislike (0)  • 1 idea  • 14 views

  #Javascript   /  Posted by: jeph6

Post topic or question




Question

122  How to disable copy-paste option using javascript? 

I upload code on my blogging site but I don't want page viewers to copy it. Instead, I want them to download source code, Therefore I need a simple way to disable copy option on co...More

Save  ★   |  Dislike (0)  • 1 idea  • 88 views

  #Javascript   /  Posted by: jeph6

Post topic or question




Question

121  How can I prevent text selection on Mousedown event? 

I'm having trouble in dealing with mouse events, because when I double-click on span element it selects text but thats not what I want. Here is my simple program: <div...More

Save  ★   |  Dislike (0)  • 1 idea  • 19 views

  #Javascript   /  Posted by: slimtevez

Post topic or question




Question

120  Are events mouseenter, mouseleave similar to mouseover/mouseout? 

I am self-taught js developer but I can't understand mouse events perfectly since it confuses me when it come to practice, I can't be able to choose which event to react on some mo...More

Save  ★   |  Dislike (0)  • 2 ideas  • 17 views

  #Javascript   /  Posted by: slimtevez

Post topic or question




Question

118  How can you call async from non-async function? 

I am praticing async and await but It comes to where I want to call async from non-async but this simple program has me completely stuck. Actually I am developer who are new to asy...More

Save  ★   |  Dislike (0)  • 1 idea  • 22 views

  #Javascript   /  Posted by: youtuber

Post topic or question




Question

115  How comes (Microtask queue) while using Promises in js? 

What is microtask queue while handling Promise, Where and when is it mostly used? I am unable to manage many asynchronous tasks with Promises

Save  ★   |  Dislike (0)  • 2 ideas  • 69 views

  #Javascript   /  Posted by: jeph6

Post topic or question




Question

114  Why some events don't bubble in javascript? need example 

I'm currently learning Browser events, and find many events bubble. I can't understand why other events don't do bubble, How to know if event bubbles?

Save  ★   |  Dislike (0)  • 2 ideas  • 68 views

  #Javascript   /  Posted by: alshakul

Post topic or question




Question

113  What is eval function in javascript - Where is it used? 

I know less about eval function and heard some javascript developers saying that it should not be used in modern code, because it can perform unexpected things in your code since ...More

Save  ★   |  Dislike (0)  • 2 ideas  • 87 views

  #Javascript   /  Posted by: aksarah

Post topic or question




Question

112  How many ways to assign event handlers in javascript? 

I want to react on events but I can assign a handler only with HTML attribute, like this and I am asking: Are there many other ways to help mw with that so I can try best way suits my needs?

Save  ★   |  Dislike (0)  • 2 ideas  • 42 views

  #Javascript   /  Posted by: alshakul

Post topic or question








Enjoy Donnekt platform