html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!-- Created by Mohammad Waqas -->
<!--how to change the content
i want to change my li tag content but in which nows function does not work and most importantly console does not give me any error plzzz someone correct that issue and thank you in advance. my code is given below.-->
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<h1>this is chaned the background color</h1>
<button onclick="change('red')">background is red</button>
<button onclick="change('purple')">background is purple</button>
<button onclick="chan('green')">green color</button>
<button onclick="chan('black')">black color</button>
<button onclick="chans()">change text</button>
<p id="head">THIS IS A PARAGRAPH</p>
<ul id="fruit">
<li>carot</li>
<li>potato</li>
<li>strawberry</li>
<li>banana</li>
<li>ananas</li>
</ul>
<button onclick="nows()" type="button">now new</button>
<script type="text/javascript">
/*var number=prompt('enter the number');
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
/* Created by Mohammad Waqas */
body {
}
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
// Created by Mohammad Waqas
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run