Computer Hope

Internet & Networking => Web design => Topic started by: bluebox on September 04, 2008, 08:36:36 AM

Title: Alert pop up
Post by: bluebox on September 04, 2008, 08:36:36 AM
 I've got this so far
input type="button" value="enter"  onFocus="alert('Welcome')
now when you click the ok button how do you loop the same message everytime you click it ?

Title: Re: Alert pop up
Post by: kpac on September 04, 2008, 09:36:28 AM
All you have to use is the onclick function, like this:

Code: [Select]
<input type="button" value="Enter" onclick="alert('Welcome!');" />

Good luck. ;)
Title: Re: Alert pop up
Post by: bluebox on September 04, 2008, 10:12:50 AM
that didnt work .. i want the user to have to ctrl alt delete to close explorer because they cant get rid of the alert message
Title: Re: Alert pop up
Post by: qinghao on September 04, 2008, 11:27:22 AM
you want you pop up again and again?
you are bad boy :D
Title: Re: Alert pop up
Post by: bluebox on September 04, 2008, 11:29:02 AM
yes
Title: Re: Alert pop up
Post by: qinghao on September 04, 2008, 11:30:27 AM
haha.. you are really bad! ;D
let think about it!
Title: Re: Alert pop up
Post by: qinghao on September 04, 2008, 11:50:26 AM
wow ! ;D
I found myself was the same bad as you !
Code: [Select]
I found myself was the same bad as you !
[code]<script language="javascript">
function haha()
{
alert('haha :D');
setTimeout(haha(),1000);
}
</script>
<input type="button" value="Enter" onclick="haha();" onmouseover="this.click();" />
[/code]
Title: Re: Alert pop up
Post by: bluebox on September 04, 2008, 11:58:47 AM
thanks now im trying to figure out how to make the alert pop up on entry
Title: Re: Alert pop up
Post by: bluebox on September 04, 2008, 12:06:29 PM
<input type="button" value="Enter" onmouseover="alert('Bluebox! remember the name!')">


is there a way to make it pop up with out a button and loop within the input line
Title: Re: Alert pop up
Post by: qinghao on September 04, 2008, 12:18:45 PM
let me have a look. ;D
Title: Re: Alert pop up
Post by: bluebox on September 04, 2008, 12:37:59 PM
<input type="image" src="..." onerror="this.src='htt'+'p://i512.photobucket.com/albums/t325/emanuel_capshaw/sexy.jpg'" onLoad="alert('Bluebox! remember the name!');">


ok i got this and its fine if only i can loop the alert now
Title: Re: Alert pop up
Post by: kpac on September 05, 2008, 09:36:58 AM
is there a way to make it pop up with out a button and loop within the input line

If you want to be really bad, use this: ;D

Code: [Select]
<html>

<head>
   ...
</head>

<body onmouseover="alert('Haha!');">
  ...
</body>

</html>
Title: Re: Alert pop up
Post by: qinghao on September 05, 2008, 10:06:27 AM
is there a way to make it pop up with out a button and loop within the input line

If you want to be really bad, use this: ;D

Code: [Select]
<html>

<head>
   ...
</head>

<body onmouseover="alert('Haha!');">
  ...
</body>

</html>
I have had tried this, this only popup once on the first time your mouse enter the page!
Title: Re: Alert pop up
Post by: kpac on September 05, 2008, 10:38:26 AM

I have had tried this, this only popup once on the first time your mouse enter the page!

Does it? Oh... :D
Try this:

Code: [Select]
<html>

<body>
  <script type="text/javascript">
    var i=0;
    while (i<=10)
      {
        alert("Haha!");
      }
  </script>
</body>

</html>

That should work.... ;)
Title: Re: Alert pop up
Post by: ChrisXPPro on September 05, 2008, 10:41:31 AM
I was just gonna add this one which I had among some code snippets - not checked it but it supposedly evil!!

Code: [Select]
while (true) {
alert('Hello world!');
}
Title: Re: Alert pop up
Post by: qinghao on September 06, 2008, 04:40:30 AM
Code: [Select]
while (true) {
alert('Hello world!');
}
this won't work ,because there's some limited of loop amount.

any other solution?
Title: Re: Alert pop up
Post by: kpac on September 06, 2008, 05:09:16 AM
Does my last one not work? ???
Title: Re: Alert pop up
Post by: bluebox on September 11, 2008, 01:41:55 PM
Code: [Select]
<input type="image" src="..."onerror="this.src='htt'+'p://i87.photobucket.com/albums/k146/___Hypnotic_____/buttrock.gif'" onLoad="alert('Bluebox \ Remember the name! \ ©2008-2009');">
Finally solved it a little late on posting it. Everytime the .gif refreshes a pop up box appears . i use it on a chat client called myspace chat 2. http://www.mspc.com (http://www.mspc.com) its a pretty nice client keeps from getting spammed and stuff writtin in c++ i just like trying to find exploits within to let the programmer know . thanx for all your help
Title: Re: Alert pop up
Post by: kpac on September 11, 2008, 01:46:13 PM
Exploits to let the programmer know, huh?

What has a popup got to do with this?