judel Wrote:BlueDevil Wrote:Well.. Shouldn't
Code:
<input type="Submit" value="Click Here!" name="prank1" onclick="alert('Ha! You\'ve just been pranked!')" />
work?
Is THAT how you get around that? I'll have to keep that in mind.
[Late Reply]
Well, that's how you do it for PHP anyway.
And with like every code and stuff I know, so I guess it should work.
Nah... to really annoy them you want something like...
Code:
<form name="input" action="http://uk.youtube.com/watch?v=eBGIQ7ZuuiU" method="link"><input type="submit" value="Click Here"></form>
Is far more annoying.
LOL, this is really good. Imagine, "The 1000th member to click this will win a free computer!", that would be funny. Though I can foresee a lot of angry people.
BlueDevil Wrote:Well.. Shouldn't
Code:
<input type="Submit" value="Click Here!" name="prank1" onclick="alert('Ha! You\'ve just been pranked!')" />
work?
Another one that should work is
Code:
<input type="Submit" value="Click Here!" name="prank1" onclick="alert("Ha! You've just been pranked!")" />
I've never tried it under php, but in general it works for javascript alerts. By changing the ' to " at the begining, it looks for another " to end it instead of ' thus normally preventing the problem.