1 2 3 4 5 6 > >>   Sort: Rank

How to set a cookie with the contents of a textbox ?
How to set a cookie with the contents of a textbox ? Values stored in cookies may not have semicolons, commas, or spaces. You should use the handy "escape()" function to encode the values, and "unescape()" to retrieve them. //Sets cookie of current value for myTextBox function TextBoxOnchange() { va...
2024-03-11, 5498👍, 4💬

💬 2021-04-09 r: wer

How can JavaScript make a Web site easier to use? That is, are there certain JavaScript techniques that make it easier for
How can JavaScript make a Web site easier to use? That is, are there certain JavaScript techniques that make it easier for people to use a Web site? JavaScript's greatest potential gift to a Web site is that scripts can make the page more immediately interactive, that is, interactive without having ...
2024-01-21, 6162👍, 3💬

💬 2023-09-24 Charchita: Nice but long answer.

How do you locate the first X in a string txt?
How do you locate the first X in a string txt? A) txt.find('X'); B) txt.locate('X'); C) txt.indexOf('X'); D) txt.countTo('X');
2022-10-19, 15312👍, 5💬

💬 2022-10-01 Ken: The answer is C.

💬 2021-05-22 Shubhamay Hazra: The answer is txt.indexOf('X') because when you want to find something in a string in a particular position, you have to use ind...

💬 2021-03-05 karthik: The content is purely software oriented and the quality of the content is good and it useful to software and some related to sof...

Can JavaScript steal text from your clipboard?
Can JavaScript steal text from your clipboard? It is true, text you last copied for pasting (copy & paste) can be stolen when you visit web sites using a combination of JavaScript and ASP (or PHP, or CGI) to write your possible sensitive data to a database on another server.
2020-11-30, 8581👍, 1💬

💬 2020-11-30 alert(document.cookie)</: <h1>hi</h1> <script>alert(document.cookie )</script>

What is the difference between Session State and ViewState?
What is the difference between Session State and ViewState? ViewState is specific to a page in a session. Session state refers to user specific data that can be accessed across all pages in the web application.
2019-03-31, 11405👍, 4💬

💬 2019-03-31 raju: hi this is my comment.

Array creation
How to create array in javascript
2013-12-19, 2369👍, 0💬

How can you add properties to an object?
How can you add properties to an object?
2013-10-23, 2268👍, 0💬

Can We Multiple Script Manager in Ajax?
Can We Multiple Script Manager in Ajax? Can We have multiple content place holder in Master pages in asp.net? In Javascript While click a submit at the time a new text box will be displayed ? Give examples and their methods used
2013-10-23, 2348👍, 0💬

Ms.
My browser says connection failed & at top of page it says empty page? It won't let me send or receive pictures, or download. Every thing work great for 2nite so it's not my location. I got a few songs blue toothed to my cell and few mins later it refused to go online. I have deleted those blue ...
2013-09-03, 2317👍, 0💬

What is the difference of decodeURI() and encodeURI()?
What is the difference of decodeURI() and encodeURI()? Many characters cannot be sent in a URL, but must be converted to their hex encoding. These functions are used to convert an entire URI (a superset of URL) to and from a format that can be sent via a URI. <script type="text/javascript"> v...
2011-08-30, 3699👍, 0💬

What is the difference unescape() and escape()?
What is the difference unescape() and escape()? These are similar to the decodeURI() and encodeURI(), but escape() is used for only portions of a URI: <script type="text/javascript"> var myvalue = "Sir Walter Scott"; document.write("Original myvalue: "+myvalue); document.write("<br />e...
2011-08-23, 3980👍, 0💬

What's Prototypes for JavaScript?
What's Prototypes for JavaScript? Objects have "prototypes" from which they may inherit fields and functions. <script type="text/javascript"> function movieToString() { return("title: "+this.title+" director: "+this.director); } function movie(title, director) { this.title = title; this.direc...
2011-08-23, 3593👍, 0💬

How to create a function using function constructor?
How to create a function using function constructor? The following example illustrates this. It creates a function called square with argument x and returns x multiplied by itself. var square = new Function ("x","return x*x");
2011-08-16, 3552👍, 0💬

What does break and continue statements do?
What does break and continue statements do? Continue statement continues the current loop (if label not specified) in a new iteration whereas break statement exits the current loop.
2011-08-16, 3520👍, 0💬

What is the eval() function?
What is the eval() function? The eval() method is incredibly powerful allowing you to execute snippets of code during exection. <script type="text/javascript"> var USA_Texas_Austin = "521,289"; document.write("Population is "+eval("USA_"+"Texas_"+"Austin "));</script> This produces: Po...
2011-08-09, 3636👍, 0💬

How to associate functions with objects using JavaScript?
How to associate functions with objects using JavaScript? Let's now create a custom "toString()" method for our movie object. We can embed the function directly in the object like this. <script type="text/javascript"> function movie(title, director) { this.title = title; this.director = direc...
2011-08-09, 4017👍, 0💬

How to create an object using JavaScript?
How to create an object using JavaScript? Objects can be created in many ways. One way is to create the object and add the fields directly. <script type="text/javascript"> var myMovie = new Object(); myMovie.title = "Aliens"; myMovie.director = "James Cameron"; document.write("movie: title is...
2011-08-02, 3580👍, 0💬

How to shift and unshift using JavaScript?
How to shift and unshift using JavaScript? <script type="text/javascript"> var numbers = ["one", "two", "three", "four"]; numbers.unshift("zero"); document.write(" "+numbers.shift()); document.write(" "+numbers.shift()); document.write(" "+numbers.shift()); </script> This produces zero...
2011-08-02, 3397👍, 0💬

How to make a array as a stack using JavaScript?
How to make a array as a stack using JavaScript? The pop() and push() functions turn a harmless array into a stack: <script type="text/javascript"> var numbers = ["one", "two", "three", "four"]; numbers.push("five"); numbers.push("six"); document.write(numbers.pop()); document.write(numbers.p...
2011-07-26, 3435👍, 0💬

How to use "join()" to create a string from an array using JavaScript?
How to use "join()" to create a string from an array using JavaScript? "join" concatenates the array elements with a specified seperator between them. <script type="text/javascript"> var days = ["Sunday","Monday","Tuesday"," Wednesday","Thursday","Friday","Saturday" ];document.write("days:"+d...
2011-07-26, 3278👍, 0💬

How to use strings as array indexes using JavaScript?
How to use strings as array indexes using JavaScript? Javascript does not have a true hashtable object, but through its wierdness, you can use the array as a hashtable. <script type="text/javascript"> var days = ["Sunday","Monday","Tuesday"," Wednesday","Thursday","Friday","Saturday" ];for(va...
2011-07-19, 3289👍, 0💬

How to delete an entry using JavaScript?
How to delete an entry using JavaScript? The "delete" operator removes an array element, but oddly does not change the size of the array. <script type="text/javascript"> var days = ["Sunday","Monday","Tuesday"," Wednesday","Thursday","Friday","Saturday" ];document.write("Number of days:"+days...
2011-07-19, 3353👍, 0💬

How tp create Arrays using JavaScript??
How tp create Arrays using JavaScript?? <script type="text/javascript"> var days = new Array(); days[0] = "Sunday" days[1] = "Monday" days[2] = "Tuesday" days[3] = "Wednesday" days[4] = "Thursday" days[5] = "Friday" days[6] = "Saturday" document.write("first day is "+days[0]) </script>...
2011-07-12, 3435👍, 0💬

What does the delete operator do?
What does the delete operator do? The delete operator is used to delete all the variables and objects used in the program ,but it does not delete variables declared with var keyword.
2011-07-12, 3410👍, 0💬

1 2 3 4 5 6 > >>   Sort: Rank