onload="alert('all')" inside body is not showing any alert l
Moderator: General Moderators
-
lokesh_kumar_s
- Forum Commoner
- Posts: 48
- Joined: Mon Apr 13, 2009 5:39 am
- Contact:
onload="alert('all')" inside body is not showing any alert l
onload="alert('all')" inside body is not showing any alert on load. please tell me what is the problem.
- Attachments
-
- Sample.zip
- (2.51 KiB) Downloaded 157 times
Re: onload="alert('all')" inside body is not showing any alert l
You have repeated doctype declaration. Check your html with validator, fix all issues and then it will work.
From sample.zip:
From sample.zip:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="calendarDateInput.js">
/***********************************************
* Jason's Date Input Calendar- By Jason Moon http://calendar.moonscript.com/dateinput.cfm
* Script featured on and available at http://www.dynamicdrive.com
* Keep this notice intact for use.
***********************************************/
</script>
<title>Nelgo Solutions Incorporated </title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="Robots" content="index,follow" />
<link rel="stylesheet" type="text/css" href="content.css" />
<link rel="stylesheet" type="text/css" href="main.css" media="screen" />
<style type="text/css">
.style5 {
text-align: center;
}
</style>
<!-- THIS DOCTYPE DECLARATION SHOULDN'T BE HERE -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
lokesh_kumar_s
- Forum Commoner
- Posts: 48
- Joined: Mon Apr 13, 2009 5:39 am
- Contact:
Re: onload="alert('all')" inside body is not showing any alert l
Thanks kaszu,
actually i took out that Docttype that you said. but it is still not working do you know any tool that identifies suck error in html.
actually i took out that Docttype that you said. but it is still not working do you know any tool that identifies suck error in html.
- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: onload="alert('all')" inside body is not showing any alert l
http://validator.w3.org/lokesh_kumar_s wrote:Thanks kaszu,
actually i took out that Docttype that you said. but it is still not working do you know any tool that identifies suck error in html.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
-
lokesh_kumar_s
- Forum Commoner
- Posts: 48
- Joined: Mon Apr 13, 2009 5:39 am
- Contact:
Re: onload="alert('all')" inside body is not showing any alert l
actually i took out session_start() which was there in Authentication.php. now it works. but i need to start the session and use session variables. And also i want to execute some function onload of the page .please help.AbraCadaver wrote:http://validator.w3.org/lokesh_kumar_s wrote:Thanks kaszu,
actually i took out that Docttype that you said. but it is still not working do you know any tool that identifies suck error in html.