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
57
views
asked
Jan 4
in
Computer Science
by
Priya
(
31.5k
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
(
251k
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
63
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
(
5.9k
points)
0
votes
1
answer
61
views
Description can be added to a web page using _____ tags.
asked
Nov 4, 2023
in
Computer Science
by
Priya
(
31.5k
points)
0
votes
1
answer
67
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
(
31.5k
points)
0
votes
1
answer
195
views
While designing a web page, a proper balance must be maintained between_____
asked
Nov 3, 2023
in
Computer Science
by
Kabita
(
5.9k
points)
0
votes
1
answer
68
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
(
31.5k
points)
Categories
All categories
Biology
(74)
Science
(187)
Maths
(87)
English
(74)
Grammar
(92)
Education
(15)
Computer Science
(18)
Others
(31)
Economics
(23)
Geography
(27)
Social science
(73)
Business Studies
(14)
General Knowledge
(42)
...