# Content not showing in safari

**URL:** https://forum.kirupa.com/t/content-not-showing-in-safari/299313
**Category:** Uncategorized
**Created:** [November 3, 2009, 11:42am UTC](https://forum.kirupa.com/t/content-not-showing-in-safari/299313 "2009-11-03T11:42:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![crayzee](https://avatars.discourse-cdn.com/v4/letter/c/919ad9/32.png) [@crayzee](https://forum.kirupa.com/u/crayzee)
#### Post date: [November 3, 2009, 11:42am UTC](https://forum.kirupa.com/t/content-not-showing-in-safari/299313/1 "2009-11-03T11:42:42Z")

</div>

I’m just getting into JS and have come across a few problems when using safari on both my PC and MAC. When using other browsers (firefox, IE8) there are no problems.

Is this just a safari problem you can’t get around yet?

```auto

<html>
<head>
<script type="text/javascript">
function show_prompt()
{
var name=prompt("Please enter your name","Harry Potter");
if (name!=null && name!="")
  {
  document.write("Hello " + name + "! How are you today?");
  }
}
</script>
</head>
<body>

<input type="button" onclick="show_prompt()" value="Show prompt box" />

</body>
</html>

```
