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

Design

How is this web page preventing user from getting background image?

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Removing my answer as it's obviously incorrect. But my best guess is that they're using some javascript to modify the context menu. Here's some info from stackoverflow: http://stackoverflow.com/questions/24020321/how-to-disable-save-image-as-option-on-right-click

I wish I could help you out, but I have no idea.

1 Answer

Joel Bardsley
Joel Bardsley
31,249 Points

Hi Wayne,

I don't think there's any JavaScript involved, I think the option is just disabled because the background is applied in css to a pseudo-element (in this case div.c-landing::before) and has a z-index of -1, so no matter where you right click on the page, you won't be able to directly access the background image.

If any of that is unclear, let me know.

Thanks, Joel