answersLogoWhite

0


Best Answer

The prompt dialogue box is used to get user feedback and change the value accordingly in the paragraph. Try and use some other popup box like confirm or alert if you do not wish to replace the value in the body paragraph

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: When writing prompt box by using javascript the paragraph on the body tag is replaced by the value of the prompt how to solve this?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do I put a dropdown list inside a prompt box using Javascript?

not posiible


What control and method provides a simple way to gather input from the user at runtime without placing a text box on a form?

You could use the prompt command in Javascript.


What method is used in JavaScript used to generate output?

If it's in a function, you can just write return "output"; There's also prompts and alerts alert("output"); prompt("output");


What is javascript and how do you turn it on?

JavaScript is a computer scripting language used to make a website more versatile and interactive. Enabling JavaScript varies by browser.Mozilla FirefoxClick the Tools menu, or press Alt+T if you don't see a menu, and select Options \ Content \ Enable JavaScript. When you're finished click on OK to save changes.Internet ExplorerClick the Tools menu \ Internet Options \ Security \ Internet \ Custom Level. Scroll down to the Scripting section and click to Enable JavaScript. Do not choose the Prompt option, since you will be prompted every time a web site tries to use JavaScript. When you're finished click OK and then OK again.SafariGo to Edit \ Preferences \ Security \ Enable JavaScript. When you're finished simply close the window.OperaClick on the Opera button and choose Preferences \ Advanced \ Content \ Enable JavaScript. When you're finished click OK.


What are different dialog boxes in JavaScript?

There are three Types of Dialog Boxes in JavaScript1. alert() : The simplest to direct output to a dialog box is to use the alert() method. The alert dialog box is used to display an alert message to the user.2. prompt() : The prompt() method dialog box allows the user the opportunity to enter information. It takes two parameters; a message and a default string for the text entry field.3. confirm() : The confirm dialog box returns a Boolean value based on the user's selection.

Related questions

What is a type 3 writing assingment?

a 5-paragraph writing that answers a given prompt. There's usually certain requirements that must be met under FCA's


Is a prompt like a paragraph?

not really.


What JavaScript method is most commonly used to generate output?

alert and prompt


How do I put a dropdown list inside a prompt box using Javascript?

not posiible


Does a writing prompt have to have paragraphs?

A writing prompt is often just a sentence or two.


What is composition writing?

In a writing composition there is a prompt to write about.An Expository prompt is about writing about othersPersonal Narrative is about yourself.


How can you use prompt in a sentence?

The writing prompt of the day is about the word love.


What is a prompt in writing?

A prompt is a short sentence giving an idea to get you started writing. It can be a question or simply a vivid image that makes you want to start writing about it.


What to do if yahoo says that This page requires that you have Javascript enabled on your browser?

Java can be trusted, just enable the script at the prompt.


What is the writing test?

It is a test where you have to write to a prompt. The prompt could have to do with writing a story, a persuasive essay, or a response to literature. You usually have about one hour to finish writing your paper.


Javascript code for the area of a triangle?

<html> <head> <script language="JavaScript"> function TriaAngle (base, height) { document.write("the area of the triangle is" +1/2*base*height) } </script></head> <body> <script language ="JavaScript"> var b=(prompt ("enter the base of the triangel")) var h=(prompt ("enter the height of the triangle")) TriaAngel (b,h) </script ></body></html>


What is stylus in America?

A writing prompt used for tablets or.