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
<script>
alert(window.navigator.appVersion); </script> 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"); How can you set position of the page (Top and Left) to 0 using Javascript in one line code?2/17/2012 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); Yes, it's possible. You can use __doPostBack() function to call server side event.
toUpperCase()
Math.random()
Displays the text enclosed within <noscript> tag when JavaScript is disabled.
alert(document.getElementById('txtbox1').value);
|