Tech News is a blog created by Wasim Akhtar to deliver Technical news with the latest and greatest in the world of technology. We provide content in the form of articles, videos, and product reviews.
jQuery Event ready() Method
Definition and Usage
The ready event occurs when the DOM (document object model) has been loaded, and the page
has been completely rendered (including images).
Because this event occurs after the document is ready, it is a good place to have all other jQuery
events and functions. Like in the example above.
The ready() method specifies what happens when a ready event occurs.
The ready() method can only be used on the current document, so no selector is required.
The three following syntaxes are allowed:
Syntax 1
$ ( d o c u m e n t ) . r e a d y ( f n c i o n )
Syntax 2
$ ( ) . r e a d y ( f n c i o n )
Syntax 3
$ ( f n c i o n )
Parameter Description
function Required. Specifies the function to run after the document has been loaded.
Tips and Notes
Tip: The ready() method should not be used together with <body onload="">.
Mr Wasim Akhtar
JavaScript Comments
Comments can be added to explain the JavaScript, or to make the code more readable.
Single line comments start with //.
The following example uses single line comments to explain the code:
Example
Mr Wasim Akhtar
< c i p p e = " e / j a a c i p " >
/ / W i e a h e a d i n g
d o c m e n . i e ( " < h 1 > T h i i a h e a d i n g < / h 1 > " ) ;
/ / W i e o p a a g a p h :
d o c m e n . i e ( " < p > T h i i a p a a g a p h . < / p > " ) ;
d o c m e n . i e ( " < p > T h i i a n o h e p a a g a p h . < / p > " ) ;
< / c i p >
BufferedWriter
BufferedWriter :
The BufferedWriter class is used to write text to a character-output stream, buffering characters so as to
provide for the efficient writing of single characters, arrays and strings.
The constructor of the FileWriter class takes the file name which has to be buffered by the
BufferedWriter stream. The write( ) method of BufferedWriter class is used to create the file into
specified directory.
Mr Wasim Akhtar
Download VLC Media Player 1.1.11 - FileHippo.com
VLC media player is a highly portable multimedia player for various audio and video formats as well as DVDs, VCDs, and various streaming protocols without external codec or program.
It can also be used as a server to stream in unicast or multicast in IPv4 or IPv6 on a high-bandwidth network.
VLC can play:
- MPEG-1, MPEG-2 and MPEG-4 / DivX files from a hard disk, a CD-ROM drive, and so on
- DVDs, VCDs, and Audio CDs
- From satellite cards (DVB-S)
- Several types of network streams: UDP/RTP Unicast, UDP/RTP Multicast, HTTP, RTSP, MMS, etc.
- From acquisition or encoding cards (on GNU/Linux and Windows only)
[Changelog] What’s New in Microsoft Edge 130 and Later Versions
UPDATE: Addition of Microsoft Edge 132.0 version. In this exclusive changelog article, we are providing information about all versions of Mi...
-
Newer versions of Windows 11 come with a new security feature called “Windows Protected Print Mode (WPP)“. This article will help you in act...
-
UPDATE: Direct download links added for the latest Mozilla Firefox 131.0.2, 115.16.1 ESR and 128.3.1 ESR offline installers. NOTE: The downl...