In this activity, you will write a computer program that shows a
pop-up window when a reader opens your document.
A pop-up window, or an alert,
is a great way to add visual excitement and an element of surprise to your work.
It can also offer readers encouragement...
give instructions, or persuade them to read about your topic.
To do this, you’ll write code.
Code is a set of instructions written in a programming language.
It tells a computer to carry out specific tasks.
You will write the code for your pop-up message in the script editor.
The script editor lets you add personalized features and functionality to applications.
It is particularly good for designing internet content and websites.
To start, open your research notes document from Google Drive.
Open the script editor.
This is where you will write your code.
From the tools menu in your document, select Script editor.
A new tab opens with a coding screen.
Your research notes are still open in Google Docs in the first tab.
Name your code “Opening Message.”
The script editor contains starter code.
This code is in every project, and it includes curly braces.
They tell the computer when to start and stop performing actions.
A left curly brace signals the start of the code, and a right curly brace indicates the end.
Click to the right of the first curly brace in your script editor.
In the next video, you will put your code here, between the two curly braces.