Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Inside the script tags, write a function that will open an alert dialog with the message 'Warning!'

Inside the script tags, write a function that will open an alert dialog with the message 'Warning!'

Adam Beer
Adam Beer
11,314 Points

What is your question?

Steven Parker
Steven Parker
231,060 Points

Please show your code and provide a link to the course page.

1 Answer

Sounds like this question is related to Javascript and not HTML. At the top of your HTML page, inside the <head> section, you have a set of <script> </script> tags, inside of those, you write an 'alert' function to complete the task.

Example:

function function_name(params) { code ... }