i have a form, and i want to make it possible to previsualize it.
so i created a div with id previsualize. and a button in the form calls the function previsualize. here is the function:
it says that the problem is this: The object doesnt accept that property or method. But it refers to a line that doesnt exist!
so i created a div with id previsualize. and a button in the form calls the function previsualize. here is the function:
| Code: |
| function previsualize()
{ var title = document.modificar.titulo.value; var content = document.modificar.contenido.value; var author = document.modificar.autor.value; var preview = title + "\n" + content + "\n" + "By: " + author; document.previsualize.innerText = (preview); } |
it says that the problem is this: The object doesnt accept that property or method. But it refers to a line that doesnt exist!
