Gaming Question about JavaScript

Wabsta

you fight like a dairy farmer
OP
Member
Joined
Apr 25, 2008
Messages
2,495
Trophies
0
Age
32
Location
SCUMM Bar
Website
www.wabsta.com
XP
449
Country
Netherlands
I actually never worked with javascript.
But, I wanted to create a Confirm box on my website.
So, basicly, this is what I did:
CODE
ÂÂÂÂfunction show_confirm()
ÂÂÂÂ{
ÂÂÂÂÂÂÂÂvar antwoord=confirm("Weet je zeker dat je deze vragen wilt verwijderen?");
ÂÂÂÂÂÂÂÂif (!antwoord)
ÂÂÂÂÂÂÂÂ{
ÂÂÂÂÂÂÂÂÂÂÂÂwindow.location = "http://www.examplelink.com";
ÂÂÂÂÂÂÂÂ}
ÂÂÂÂ}

That's between the
And, an input button:
CODE
I've tested it by placing an Alert in the "if(!antwoord){ }", and it comes there, but it doesn't redirect me to the link I said at window.location..

And I have NO idea what the problem is here. Anyone can help me?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: updated ship of harkinian, gonna install some hd texture pack