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 trialVincent Clayton
334 PointsInside 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!'
Steven Parker
231,248 PointsPlease show your code and provide a link to the course page.
1 Answer
dmzstudio45
43,976 PointsSounds 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 ... }
Adam Beer
11,314 PointsAdam Beer
11,314 PointsWhat is your question?