/    Sign up×
Community /Pin to ProfileBookmark

why won’t this part work

i just started js and can’t figure out how to get alerts and confirmnations to work i have checked tutorials but they only deal with putting an html file into the popup. I would apprecaite any help.

<script language = “JavaScript”>
<!–
if (confirm(” Almost ready to pimp your computer. Click Yes to right now!!!” ) )
document.write( “Now pimping” )
alert(“now you got a pmp computer ha ha” )
else
document.write( “Ok fine don’t pimp your computer.” )
//–></script>

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@bathurst_guySep 21.2005 — <i>
</i>&lt;script language = "JavaScript"&gt;
&lt;!--
if (confirm(" Almost ready to pimp your computer. Click Yes to right now!!!" ) ){
document.write( "Now pimping" )
alert("now you got a pmp computer ha ha" )
}else{
document.write( "Ok fine don't pimp your computer." )
}
//--&gt;&lt;/script&gt;
Copy linkTweet thisAlerts:
@demon_ice_boizauthorSep 21.2005 — thank you very much ?
×

Success!

Help @demon_ice_boiz 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 5.19,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...