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 trialRizwan Talib
3,998 PointsHTML Link not working, PLS HELP!
Hi Guys,
I have completed the game, and uploaded the index.HTML link on my portfolio. However, when I click onto the link nothing happens and when I open the link in a new tab the message appears "about:blank#blocked" on the web page. I was wondering if someone can perhaps help me overcome this problem so that my game that I created on TeamTreeHouse can be viewed on my website. The link to my website Portfolio is; https://ecstatic-hypatia-2a086a.netlify.app I am newly into coding and will very much appreciate any feedback and where I can improve regarding my website. Thank you guys for your help!
3 Answers
Rohald van Merode
Treehouse StaffHi Rizwan Talib,
It looks like the link has an href
attribute set to a local directory on your computer. The server won't have access to that directory. You'll also want to host your Four in a Row game and then point the href
attribute to that live URL.
Hope this helps 🙂
Rizwan Talib
3,998 PointsHow can I host the game? I've tried itch.io to upload the game but It just shows a green background with a start screen in the corner. Is there something I'm doing wrong?
Rohald van Merode
Treehouse StaffHi Rizwan Talib,
It's hard to tell if you're doing something wrong without seeing the code or live link. Are you getting any errors in the console when running it? It could be that there's an error in one of the file paths causing things to break. You'll want to make sure that all filepaths are relative to your project.
As for how to host it there's a lot of different options. Github Pages probably being the easiest if you already got a repository set up for your project. Netlify and Heroku are some of the other free alternatives 🙂