/    Sign up×
Community /Pin to ProfileBookmark

Problem: Links are causing the program to stall

I’m working on a simple program that allows the user to enter one of three genres using a prompt box, confirm it with with another pop-up, and then receive a URL relating to their subject.

When I get to the final step, though, the program displays the text that introduces the link, and then stalls. The pointer turns into an hourglass and never changes back, and the link never shows up.

The program works as long as I use placeholder text instead of a link.

Here’s the relevant code (I think):

[code]
if (genre==”Zelda”)
{
document.write(zeldaLink.link(“http://www.zreomusic.com”))
}

else if (genre==”Steampunk”)
{
document.write(“Testing2″)
}

else if (genre==”Harry Potter”)
{
document.write(zeldaLink.link(“http://www.zreomusic.com”))
}
[/code]

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @Nandra spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...