Alert Box Codes
4 posters
:: Public Lobby :: Coding Languages :: Javascript
Page 1 of 1
Alert Box Codes
- Code:
<input type="button" onclick="alert('Hi, I am an alert box!');" value="Click here for a message" />
Last edited by tommo on Fri Jun 05, 2009 9:49 pm; edited 1 time in total
tommo- Admin
- Posts : 105
Digi Points : 5418
Join date : 2009-05-23
Location : England
Re: Alert Box Codes
Just a note the second one has compatibilty issues in some browsers but i dont know why
tommo- Admin
- Posts : 105
Digi Points : 5418
Join date : 2009-05-23
Location : England
Re: Alert Box Codes
I tried this. Here is what I got.
- Code:
<input type= "button" Onclick="alert('You are going to die in seven days!');" value="Click here for free candy"/>
Re: Alert Box Codes
lol quad brilliant
tommo- Admin
- Posts : 105
Digi Points : 5418
Join date : 2009-05-23
Location : England
Re: Alert Box Codes
WHO EDITED THE CODES OUT OF MY POST
tommo- Admin
- Posts : 105
Digi Points : 5418
Join date : 2009-05-23
Location : England
Re: Alert Box Codes
I have checked security records and it was NICK and if he sees this he must PM me with a good reason why or instant ban and IP ban
tommo- Admin
- Posts : 105
Digi Points : 5418
Join date : 2009-05-23
Location : England
Re: Alert Box Codes
That's not cool Nick. I wanted to try the bigger javascript. Could you try and find them again Tommo?
Last edited by Quadtro on Fri Jun 05, 2009 6:29 pm; edited 1 time in total (Reason for editing : Added a question)
Re: Alert Box Codes
yah its ok i know them so ill replace in a sec
tommo- Admin
- Posts : 105
Digi Points : 5418
Join date : 2009-05-23
Location : England
Re: Alert Box Codes
here is bigger one:
- Code:
<html>
<head>
<script type="text/javascript">
<!--
function confirmGetMessage() {
//display a confirmation box
//asking the visitor if they want to
//get a message
var theAnswer = confirm("Get a message?");
//if the user presses the "OK" button
//display the message "Javascript is cool!!"
//in an alert box
if (theAnswer){
alert("Javascript is cool!!");
}
//otherwise display the message
//"Here is a message anyway!!"
//in an alert box
else{
alert("Here is a message anyway!!");
}
}
//-->
</script>
</head>
<body>
<form>
<input type="button" onclick="confirmGetMessage()" value="Click me for some reason" />
</form>
</body>
</html>
tommo- Admin
- Posts : 105
Digi Points : 5418
Join date : 2009-05-23
Location : England
Re: Alert Box Codes
yah ill search my codes (i have a folder with scripts on it on my PC)
tommo- Admin
- Posts : 105
Digi Points : 5418
Join date : 2009-05-23
Location : England
:: Public Lobby :: Coding Languages :: Javascript
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|