Alert
Why we need to specification in a script tag
As I said earlier in notepad we write HTML
and In HTML
we write javascript and another scripting
so we have to specify which scripting
we are using
and In HTML
we write javascript and another scripting
so we have to specify which scripting
we are using
<html>.....
<script language="javascript"
type="text/javascript">
.....
</html>
Alert
Want to threaten someone try these and share this
In this post, we are going to discuss alert box comes when a notification comes in desktop version chrome.
The alert() function.
<html>.....
<script type="text/javascript">
alert("Your operator is in trouble !!!!!!!!! ");
</script>
.....</html>
COMMENT
there 2 type of comment.
(1)// single line comment
(2)/*.........*/ paragraph comment or we can say multi-line comment
The first type: Single line comment
<html>...........
<html>...........
<script>
//this single line comment
alert("hello");
<script>
....<html>
Note: Comment is not considered in the script they are just for our convenience.
The second type is: Multi-line comment
The second type is: Multi-line comment
<html>.....
<script>
/* hello friend i m writing a multi line comment
thanks for clicking the add */
alert( please just click the add);
</script>
....</html>
No comments