# Using createA() with a '#' instead of a url loads the current page in the web editor

**URL:** <https://discourse.processing.org/t/using-createa-with-a-instead-of-a-url-loads-the-current-page-in-the-web-editor/19864>\
**Category:** Beginners\
**Created:** [April 17, 2020, 11:05am UTC](https://discourse.processing.org/t/using-createa-with-a-instead-of-a-url-loads-the-current-page-in-the-web-editor/19864 "2020-04-17T11:05:07Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [April 17, 2020, 7:34pm UTC](https://discourse.processing.org/t/using-createa-with-a-instead-of-a-url-loads-the-current-page-in-the-web-editor/19864/3 "2020-04-17T19:34:09Z")

</div>

> [@mcintyre](#):
>
> The longer story: the p5 Editor runs your sketch in an [iframe](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe),

More on the p5js web editor & [iframe](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe) stuff:

> [@My enemy "Script error. (:line 0)"](https://discourse.processing.org/t/my-enemy-script-error-line-0/19372/2):
>
> B/c I don’t use the p5js online editor I don’t! I can’t say for sure either. What I do know is that most JS online hosts run our code inside an [\<iframe\>](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe), which by itself gets a little in the way when we need to debug it. But by itself an [\<iframe\>](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe) shouldn’t interfere that much. It would only make it harder to directly access global variables and that’s it. My guess is that the p5js online editor goes further than that, w/ “features” like console logs redirection, “friendly” custom error me…

---

_[View the full topic](https://discourse.processing.org/t/using-createa-with-a-instead-of-a-url-loads-the-current-page-in-the-web-editor/19864)._
