|
Jquery and javascript interview questions with answers :- How can do we create a simple Array and loop through it?
var mycars = new Array();
mycars[0] = "Saab" ;
&nb
|
How do I access properties of a javascript object if I do not know the names
For example we have object like blow:
var data = { Name: 'rohit', Value: '0' };
Pro
|
how to know number of elements in a javascript object
With below function we may get the number of elements in a javascript object
function countPr
|
how to extract extension from filename string in javascript
We can find any file extension with function. It will split the characters from last dot and show
|
Redirect Default or Index (Website starting page) page with www
While doing SEO of site,then a situation arises that the website should be redirected with "www"
|
Validation xhtml when "no onClick in strict XHTML?
no onClick in strict XHTML? We may got this error when validating with w3.org.
All attribut
|
Get the page name from browser url in javascript
To get the page name in web page. need to write window.location. Complete code is given below
|
Image Float on screen with javascript
To Implement this you should have some images on web page. So to do that Follow these steps
|
Browser detection using JavaScript
There may be some situations where you need to detect the browser from website then
|
Bookmark Page using Javascript
Have you seen the word Bookmark this page or Add to favourite
on webs
|