Dynadot — .com Registration $8.99

What does this code actually do?

Spaceship Spaceship
Watch

cocaine

Account Closed
Impact
6
<script>
alert();
</script>

my fren said "try this" and locked the topic in another forum. I just cant get where to use it and what kind of script is this?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Looks like un-finished javascript for a pop-up. :)

Looks like un-finished javascript for a pop-up. :)

EDIT: It is, this is finished :)
<script type="text/javascript">
function disp_alert()
{
alert("I am an alert box!!")
}
</script>
 
0
•••
No need for a function, just fill in the brackets :D

Code:
<script type="text/javascript">
alert("This is one of those annoying boxes!");
</script>
 
0
•••
then what it does?
 
0
•••
It just pops up a message box with whatever text you have in it. Here's a novel idea...why not just give it a try and answer your own question. :D

Lux
 
0
•••
If you want to instantly try it out, just type this into your address bar:

Code:
javascript:alert("Hi! I'm an alert box, just what you told me to do!");

You'll know exactly what everyone's talking about...
 
0
•••
Appraise.net

We're social

Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back