Sai Gopal Wordpress Blog

saigopal wordpress blog

Saigopal's website

Saigopal's website

My Daughter Website

Weebly

Palwow

Freelance Jobs

Wednesday, April 7, 2010

Giving choices in alerts in javascript

Giving choices in alerts

Click on the link below:
Contents Page
When I click on this link, I get a confirm box asking me whether I want to go to the link or not. If I choose OK then the browser takes me to the link. If I click cancel I stay where I am. Here is the code:
<html>

<head>

<title>

</title>




</head>

<body>

<h1>

Giving choices in alerts

</h1>


<a href="#" onclick=" ConfirmChoice(); return false;">

<p>

Contents Page

</a>


</body>

</html>

No comments: