Login
Remember
Register
Poraxali.com
Questions
Unanswered
Users
Ask a Question
Ask a Question
Write a function in JavaScript to display the current date on the web page as soon as the page is loaded.
0
votes
87
views
asked
Jan 4
in
Computer Science
by
Priya
(
33.3k
points)
Write a function in JavaScript to display the current date on the web page as soon as the page is loaded.
Facebook
Twitter
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 4
by
Haren
(
268k
points)
Best answer
<html><head><script>
function myFunction()
{ var d=new Date();
document.write ( d );
}
</script>
</head>
<body onload="myFunction()">
<h1>Event handling!</h1>
</body>
</html>
Please
log in
or
register
to add a comment.
Related questions
0
votes
1
answer
94
views
In order to have fixed positions for common elements and modifiable designated portions on each web page
asked
Nov 3, 2023
in
Computer Science
by
Kabita
(
6.6k
points)
0
votes
1
answer
87
views
Description can be added to a web page using _____ tags.
asked
Nov 4, 2023
in
Computer Science
by
Priya
(
33.3k
points)
0
votes
1
answer
99
views
Differentiate between <object> and <embed > tag. Can we use embed tag and object tag in a single web page?
asked
Nov 5, 2023
in
Computer Science
by
Priya
(
33.3k
points)
0
votes
1
answer
233
views
While designing a web page, a proper balance must be maintained between_____
asked
Nov 3, 2023
in
Computer Science
by
Kabita
(
6.6k
points)
0
votes
1
answer
101
views
Which of the following statement is false? (a) Unsupervised learning is done on unlabeled data sets.
asked
Jan 1
in
Computer Science
by
Priya
(
33.3k
points)
Categories
All categories
Biology
(74)
Science
(189)
Maths
(107)
English
(91)
Grammar
(92)
Education
(15)
Computer Science
(18)
Others
(31)
Economics
(23)
Geography
(27)
Social science
(73)
Business Studies
(15)
General Knowledge
(42)
History
(10)
...