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 trialkenny trionfo
372 PointsAuto refresh browser when you click on it
I'm wondering how you get the html page in the browser to auto refresh when you click on it. I can't find anything on it. I have looked through rails info, online etc. not finding it. tnx
3 Answers
Chris Shaw
26,676 PointsHi Kenny,
I don't believe you can actually do that, you can use tools such as LiveReload or CodeKit for Mac OS X to reload the page whenever you make changes to your HTML or CSS but I've never seen anything that simply reloads the page when you focus/click on it.
Stephen Blank
16,286 PointsAdobe edge code will automatically show changes to HTML or CSS as well.
I found the following, but requires a button:
<input type="button" value="Reload Page" onClick="window.location.reload()">
Maybe you could make the button transparent and size it to fit the whole screen? :) Might be crazy.
fatih tas
13,181 Pointsnothing fancy there, he is just using CMD + R