Skip to content

Instantly share code, notes, and snippets.

View codeonion's full-sized avatar

Muhammad Ali codeonion

View GitHub Profile
@codeonion
codeonion / BackButtonFunctionality.html
Created February 18, 2019 14:27
Handle Back button functionality using JavaScript
<!DOCTYPE html>
<html>
<head>
<title>Prompt test</title>
</head>
<body onbeforeunload="HandleBackFunctionality()" onunload="">
Please enter your name<br>
<input type="text" id="field1">
<input type="button" value ="oka" id="field2">
</body>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Send email via Gmail SMTP server in PHP</title>
<link href="css/style.css" rel="stylesheet" type="text/css"/>
<meta name="robots" content="noindex, nofollow">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-43981329-1']);