General HTML/Web Design Programming Q`s/ONBEFOREUNLOAD



I would like to ad ONBEFOREUNLOAD to my website. Can I customize the message that pops up? The site isn't written yet, but I have a test page.

Could you possibly show me where to put the code, and what changes I might need to make? Any explanations and resources will be most appreciated. My code is below. Thank you.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
.style1 {
  font-family: "Comic Sans MS";
  font-weight: bold;
  background-position: center center;
  color: #0000FF;

<div align="center">
 <div align="center"></div>
 <div align="center"></div>
 <span class="style1">THIS PAGE REPRESENTS ANY PAGE ON MY SITE</span></div>

Lynn, I believe what you are looking for is here at

The W3 is the developer and maintains the standards of HTML, it is the best resource for web design.


General HTML/Web Design Programming Q`s

All Answers

Answers by Expert:

Ask Experts


Nancy Janyszeski


I can help with basic HTML questions and web development concepts. I do not write JavaScript, but can help with the concept of using and where to find it.


Experience in the area.I am Microsoft Office User Specialist (MOUS) Master Certified and was certified as a MOUS Authorized Instructor. Instructional design and test writer for Skills Advantage LLC,, Test Publisher and E-learning Solutions Provider

Courseware, intro and advanced HTML

Microsoft MOUS certified, ICDL certified

Past/Present Clients
Vocational Schools

©2017 All rights reserved.

[an error occurred while processing this directive]