Chaitanya Lakshmi
  • About Me
  • Job Duties
  • Knowledge Blog
  • Applications
  • Contact Us
    • Linked In
    • Facebook
  • About Me
  • Job Duties
  • Knowledge Blog
  • Applications
  • Contact Us
    • Linked In
    • Facebook

What is the difference of "setTimeout" function and setInterval functions in Javascript

2/17/2012

0 Comments

 
setTimeout is only execute the function after the defined time in milleseconds, its execute only one time.

setInterval, will call the function in each time interval.
0 Comments

How can you detect the Client Operating System using Javascript?

2/17/2012

0 Comments

 
<script>

alert(window.navigator.appVersion);

</script>

0 Comments

Basic methods for opening a PopUp window using Javascript?

2/17/2012

2 Comments

 
There are 2 different simple ways using javascript.

they are
1) Using Window.Open() and
2) Using Window.showModalDialog()

The Syntax for using these methods are

. Window.Open(URL,WindowName,Window Features)

Sample example:

window.open ("http://www.dotnetfunda.com","mywindow","status=1,toolbar=1");

. window.showModalDialog(URL,WindowName,ModalDialog Features)


Sample Example:

window.showModalDialog("http://www.dotnetfunda.com", "mywindow","dialogWidth:400px;dialogHeight:395px");


2 Comments

How can you set position of the page (Top and Left) to 0 using Javascript in one line code?

2/17/2012

0 Comments

 
Well, there is an inbuilt function in JavaScript named scroll() which takes 2 arguments x and y.

If you want to set top and left to 0 then call this.

window.scroll(0,0);
0 Comments

Is it possible make a call to server side event of any button using javascript?

2/17/2012

1 Comment

 
Yes, it's possible. You can use __doPostBack() function to call server side event.
1 Comment

Which method is used to convert a string to uppercase letters?

2/17/2012

0 Comments

 
toUpperCase()
0 Comments

For generating random numbers we have to used the following function?

2/17/2012

0 Comments

 
Math.random()
0 Comments

What does the <noscript> tag do?

2/17/2012

0 Comments

 
Displays the text enclosed within <noscript> tag when JavaScript is disabled.
0 Comments

JavaScript is interpreted by -------------

2/17/2012

0 Comments

 
Client
0 Comments

How to get value from a textbox?

2/17/2012

0 Comments

 
alert(document.getElementById('txtbox1').value);
0 Comments
<<Previous

    Archives

    April 2012
    March 2012
    February 2012

    Categor

    All
    Ajax
    Api
    Cross Site Scripting
    Css
    Curl
    Design Patterns
    Drupal
    Exception Handling
    Htaccess
    Html
    Javascript
    Jquery
    Json
    Linux
    Mysql
    Oops
    Php
    Regular Expressions
    Web 2.0
    Webservices
    Wordpress
    Xhtml

    RSS Feed

Powered by Create your own unique website with customizable templates.