# Any updates to be able to link to external web site through app lab?

**URL:** <https://forum.code.org/t/any-updates-to-be-able-to-link-to-external-web-site-through-app-lab/22083>\
**Category:** CS Discoveries\
**Created:** [November 12, 2018, 6:37pm UTC](https://forum.code.org/t/any-updates-to-be-able-to-link-to-external-web-site-through-app-lab/22083 "2018-11-12T18:37:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![hshekhter](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/hshekhter/32/3863_2.png) [@hshekhter](https://forum.code.org/u/hshekhter)\
**Post date:** [November 12, 2018, 6:37pm UTC](https://forum.code.org/t/any-updates-to-be-able-to-link-to-external-web-site-through-app-lab/22083/1 "2018-11-12T18:37:14Z")

</div>

Any updates to be able to link to external web site through app lab?

My students are desperate to link to a web site or Youtube video!!!

Any workarounds?

Thank you!

---

<div class="post-metadata">

**Author:** ![bradleywellsashley](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bradleywellsashley/32/522_2.png) [@bradleywellsashley](https://forum.code.org/u/bradleywellsashley)\
**Post date:** [November 12, 2018, 10:52pm UTC](https://forum.code.org/t/any-updates-to-be-able-to-link-to-external-web-site-through-app-lab/22083/2 "2018-11-12T22:52:13Z")

</div>

Hanna,

Have you submitted a “bug”? Often times these technical questions go to the developers through the bug report and this might be something you want to bring to their attention. (To submit a bug report go to the “hamburger menu” - three lines - on the top right hand corner).

Brad

---

<div class="post-metadata">

**Author:** ![hshekhter](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/hshekhter/32/3863_2.png) [@hshekhter](https://forum.code.org/u/hshekhter)\
**Post date:** [November 13, 2018, 2:02pm UTC](https://forum.code.org/t/any-updates-to-be-able-to-link-to-external-web-site-through-app-lab/22083/3 "2018-11-13T14:02:37Z")

</div>

Thanks for the tip. I just reported it. Hope to hear from them soon.

---

<div class="post-metadata">

**Author:** ![edavis](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/edavis/32/4927_2.png) [@edavis](https://forum.code.org/u/edavis)\
**Post date:** [November 15, 2018, 1:59am UTC](https://forum.code.org/t/any-updates-to-be-able-to-link-to-external-web-site-through-app-lab/22083/4 "2018-11-15T01:59:27Z")

</div>

My students have used HTML from W3schools to answer this question.  
[https://www.w3schools.com/html/html\_links.asp](https://www.w3schools.com/html/html_links.asp)

---

<div class="post-metadata">

**Author:** ![hshekhter](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/hshekhter/32/3863_2.png) [@hshekhter](https://forum.code.org/u/hshekhter)\
**Post date:** [November 19, 2018, 2:44pm UTC](https://forum.code.org/t/any-updates-to-be-able-to-link-to-external-web-site-through-app-lab/22083/5 "2018-11-19T14:44:41Z")

</div>

Do you have any examples you can share?

---

<div class="post-metadata">

**Author:** ![edavis](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/edavis/32/4927_2.png) [@edavis](https://forum.code.org/u/edavis)\
**Post date:** [November 22, 2018, 1:58am UTC](https://forum.code.org/t/any-updates-to-be-able-to-link-to-external-web-site-through-app-lab/22083/6 "2018-11-22T01:58:10Z")

</div>

This is the code used by one of my students for an exterior link:  
\< a href=“[https://www.merriam-webster.com/dictionary/pescatarian](https://www.merriam-webster.com/dictionary/pescatarian)”\>Pescatarian\< /a\>

I had to monk with the spacing a bit to get it to show up here. Otherwise, it just wanted to show up as a link. I guess that means he’s doing it right! 🙂

---

<div class="post-metadata">

**Author:** ![bradleywellsashley](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bradleywellsashley/32/522_2.png) [@bradleywellsashley](https://forum.code.org/u/bradleywellsashley)\
**Post date:** [November 26, 2018, 3:13am UTC](https://forum.code.org/t/any-updates-to-be-able-to-link-to-external-web-site-through-app-lab/22083/7 "2018-11-26T03:13:35Z")

</div>

Hanna,

Just checking - you mean an external link with App Lab that is used in Units 4 and 6 right? The HTML for Web Lab which is Unit 2 is `<a href="[website here]" / > Words/Picture to Link </a >` (just like above). Just wanted to follow up!

Brad

---

<div class="post-metadata">

**Author:** ![hshekhter](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/hshekhter/32/3863_2.png) [@hshekhter](https://forum.code.org/u/hshekhter)\
**Post date:** [November 26, 2018, 3:26pm UTC](https://forum.code.org/t/any-updates-to-be-able-to-link-to-external-web-site-through-app-lab/22083/8 "2018-11-26T15:26:30Z")

</div>

I am working in App Lab. But where does this code go if I have an image already on my screen that I want to click on and go to a web site?

onEvent(“image1”, “click”, function(event) {  
console.log(“image1 clicked!”);  
setImageURL(“image1”, “[https://www.cnn.com/](https://www.cnn.com/)”);

});

---

<div class="post-metadata">

**Author:** ![bradleywellsashley](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bradleywellsashley/32/522_2.png) [@bradleywellsashley](https://forum.code.org/u/bradleywellsashley)\
**Post date:** [November 27, 2018, 1:16pm UTC](https://forum.code.org/t/any-updates-to-be-able-to-link-to-external-web-site-through-app-lab/22083/9 "2018-11-27T13:16:55Z")

</div>

Hanna,

Unfortunately no, the `setImageURL` block only gets the image from the location. I still don’t think there is a way to link to an external site from App Lab.

As an alternative (and this is a big alternative) - you could look into responsive screen design in HTML. Some websites look like an app because there is internal code that has `if statements` that if the screen is a certain size, other certain elements of the CSS will take over.

I’ve found some good tutorials in [General Assembly Dash](https://dash.generalassemb.ly/projects) for this.

Hope that helps (even though its not the answer you were looking for),  
Brad

---

<div class="post-metadata">

**Author:** ![hshekhter](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/hshekhter/32/3863_2.png) [@hshekhter](https://forum.code.org/u/hshekhter)\
**Post date:** [November 28, 2018, 6:51pm UTC](https://forum.code.org/t/any-updates-to-be-able-to-link-to-external-web-site-through-app-lab/22083/10 "2018-11-28T18:51:03Z")

</div>

Thank you so much for your help, Brad!

---

<div class="post-metadata">

**Author:** ![rebecca.sims](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@rebecca.sims](https://forum.code.org/u/rebecca.sims)\
**Post date:** [September 10, 2026, 3:17pm UTC](https://forum.code.org/t/any-updates-to-be-able-to-link-to-external-web-site-through-app-lab/22083/11 "2026-09-10T15:17:38Z")

</div>

My students are having the same problem. I’ll submit a bug also. It worked last year.
