javascript question.

Page 1 of 1

1 Replies - 744 Views - Last Post: 10 March 2013 - 10:05 AM

#1 9011  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 07-March 13

javascript question.

Posted 10 March 2013 - 08:14 AM

<!DOCTYPE html>
<html>
<head>

</head>
<body>

<h1>My first Javascript</h1>

<p>
Javascript can react to events. Like the click of a button:
</p>

<button type = "button" onclick = "alert ('Welcome!')">Enter!</button>

</body>
</html> 



i wish to develop more into the code from the above::
when the user click enter welcome box alert and redirect them into a new page
would someone teach me how to create a function like that?

Is This A Good Question/Topic? 0
  • +

Replies To: javascript question.

#2 GunnerInc  Icon User is offline

  • "Hurry up and wait"
  • member icon




Reputation: 858
  • View blog
  • Posts: 2,277
  • Joined: 28-March 11

Re: javascript question.

Posted 10 March 2013 - 10:05 AM

Please don't open another topic for the same question. You already have a topic here javascript problems
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1