please I need help since I am new in this step
what I need is that document.write (getMensaje ());
is inside the input box
someone could correct me or help me, thank you very much
<html>
<head>
<style>
body {
background-color: #f6f6f6;
color: #555;
line-height: 1.7;
}
center {
}
center div {
padding: 0 10vw;
/* text-align: justify; */
}
* {
font-family: Raleway, monospace, sans-serif;
font-weight: 300;
font-size: 17px;
}
a {
text-decoration: none;
color: royalblue;
}
a:hover {
color: red;
}
b {
font-size: 20px;
font-weight: bold;
}
input {
text-align: center;
outline: none;
}
input.ffpnote {
font-size: 22px;
font-weight: bold;
color: black;
margin: 20px 0;
padding: 8px;
width: 160px;
}
input.paypalemail {
font-weight: bold;
color: black;
margin: 0 10px;
padding: 4px 0;
}
img {
margin-bottom: 50px;
}
</style>
<script>
function getMensaje(){
var aFrases=new Array();
aFrases[0]="test0";
aFrases[1]="test01";
aFrases[2]="test02";
aFrases[3]="test03";
return(aFrases[Math.floor(Math.random() * aFrases.length)]);
}
</script>
</head>
<body>
<script>
document.write(getMensaje());
</script>
<input onclick="select()" class="paypalemail" style="width:200px" value="document.write(getMensaje());">
</body>
</html>