Topics, Question and Answers




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

Log in or sign up to ask question or give any idea




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

Log in or sign up to ask question or give any idea




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?

Log in or sign up to ask question or give any idea




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

Log in or sign up to ask question or give any idea




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

Log in or sign up to ask question or give any idea




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

Log in or sign up to ask question or give any idea




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

Log in or sign up to ask question or give any idea




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

Log in or sign up to ask question or give any idea




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

Log in or sign up to ask question or give any idea




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?

Log in or sign up to ask question or give any idea




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

Log in or sign up to ask question or give any idea




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?

Log in or sign up to ask question or give any idea




Question

110  Do I need python if I know C++, C#, Javascript , R and Php 

I am programmer who mastered C# and C++, Javascript, R(for data science) and Php(backend) in all my projects and I'm advising developers if Its a must to learn Python too earlier....More

Log in or sign up to ask question or give any idea




Question

60  Many developers won't move from Javascript to Typescript 

It's usual that some programming languages come and go/die/ or people leave and replace them with new one, what will happen to javascript world if Typescript goes on better than it...More

Log in or sign up to ask question or give any idea




Question

56  Can I use Deno or Node.js if I don't know much javascript? 

I want to know if it is easy to learn deno as my back-end language without having basics skills in Typescript, It It can't be easy. I need developer tips that i should follow in or...More

Log in or sign up to ask question or give any idea




Question

34  How to use moment.js in javascript 

I am developing website which will be used grobally, And Want the approach which can help me to manage date and time for each user according to country timezones

Log in or sign up to ask question or give any idea








Back to top