Common Interaction Methods
This chapter mainly explains how to input content into the webpage and how to interact with the browser window, which can be easily realized through simple object methods.
JavaScript - Output Content - document.write()
document.write() Can be used to write directly to the HTML output stream. To put it simply, it is to output the content directly in the w...
Date: 2022-11-16 07:06:17
JavaScript-Alert (alert message dialog)
When we visit a website, sometimes a small window pops up suddenly, with a text of prompt information written on it. If you don't click &...
Date: 2022-11-16 07:26:34
JavaScript confirm message dialog
The confirm message dialog box is usually used to allow the user to make a selection action, such as: "Are you right?" and so on. Po...
Date: 2022-11-16 10:28:42
JavaScript-Ask a question (prompt message dialog)
promptA pop-up message dialog box is usually used to ask for some information that needs to be interacted with the user. Popup a message dialo...
Date: 2022-11-16 10:40:17