cocaine Account Closed Impact 6 Mar 9, 2006 905 views 5 replies #1 <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?
<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?
J4m!3 Established Member ★ 20 ★ Impact 3 Mar 9, 2006 #2 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>
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>
W webox Established Member ★ 20 ★ Impact 1 Mar 9, 2006 #3 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>
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>
luxinterior VIP Member VIP ★ 20 ★ Impact 12 Mar 9, 2006 #5 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
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
C cx409 Established Member ★ 20 ★ Impact 2 Mar 9, 2006 #6 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...
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...