Feb 27, 2013

A message box and a Word document without VBS?

Hi! Today I will be showing you how to create these things in the title without their respective programs.

The answer: HTML.

Try out this code: (but leave out the numbers)


1. <!DOCTYPE HTML>
2. <html>
3. <body>
4. <script>
5. alert("Here is where your message box will be.")
6. </script>
7. <p>This will be your word document.<br>
8. YOU CAN KEEP TYPING AS LONG AS YOU PUT BR IN FRONT OF THIS TEXT<br>
9. Keep typing and add as many lines as you want.<br>
10. To end put slash P. </p>
11. </body>
12. </html>

Explanation:
1. Tells the computer that this is HTML (hyper text markup language)
2. Starts the script and text.
3. Starts the visible part of the blog.
4. Tells the computer to start running JavaScript.
5. Creates a visible message box (the VBS part).
6. Ends the script.
7. Starts the Word Document.
8-9. Word Document continues.
10. Ends the Word Document.
11. Ends the visible part of the page.
12. Ends all of the page.

NOTE: Will be viewed in your internet browser.
(enable script and ActiveX controls for the mesage to appear)

No comments:

Post a Comment