Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1108917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:09:16+00:00 2026-05-17T02:09:16+00:00

I have the folowing html. It passes the w3 validator, but my javascript alert

  • 0

I have the folowing html. It passes the w3 validator, but my javascript alert does not work. Can anyone see any problems or have any suggestions on how to get it to work?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Company Name™</title>
        <link rel="stylesheet" type="text/css" href="css/style.css" />
        <style type="text/css">
            BODY {
                background-image: url(images/bg4.jpg); 
                background-repeat:no-repeat; 
                background-position:center top;
                background-attachment: fixed; 
            }
        </style>
        <script type="text/javascript">
            alert("HELLO");
        </script>
    </head>
    <body>
        <div id="wrapper">
            <div id="header">
                <div class="logo">
                    <img src="images/fcflogo.png" width="295" height="100" align="left" alt="logo"/>
                </div>
                <div class="header1">
                    <a href="financialprotection.html">100% Financial Protection</a>
                    <hr/>
                </div>
                <div class="nav">Home| Flights| Hotels| Villas | CarHire| Attractions| Contact</div>
            </div>
            <div class="ver1">
                <h2>Can't find what your looking for?</h2>
            </div>
            <div class="enq1">
                <h2>Enquiry Form</h2>
            </div>
            <div class="hor1">
                <h2>Our Service</h2>
                <a>Company Name are one of the leading independent travel companies specialising in Florida Holidays. We have a wide range of major Charter and Scheduled airlines to choose from as well as over 10,000 Hotel and Villa deals. Our aim is to provide you the customer with a truly fantastic vacation in Florida from start to finish at affordable prices. We are not committed to any airline or Tour operator so are totally committed to finding you the best deal.</a>
            </div>
            <div class="hor1"><a>FLIGHTS</a></div>
            <div class="ver2"><a>HOTELS</a></div>
            <div class="ver2"><a>VILLAS</a></div>
            <div class="hor1"><a>CAR HIRE</a></div>
            <div class="hor1"><a>ATTRACTIONS</a></div>
        </div>
        <hr/>
        <div id="footer"><a>FOOTER</a></div>
    </body>
</html>

EDIT – To all below, I do have javascript turned on, I am using debian with firefox, noScript is disabled, but the alert does not appear, even if I move it to the body.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T02:09:17+00:00Added an answer on May 17, 2026 at 2:09 am

    First, take out the trade mark. That extended characters is probably killing the closing </title> tag. I”m pretty sure that’s your issue.

    Failing that, remove every element above the <script> tag and see if it executes. If it does, restore each element one-by-one. Something above the script tag is preventing it from being parsed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following html file (1.html) and once I open it in my browser
I have following HTML: <div class=olympics style=display: block; position: absolute; left: 250px; top: px;>
I have following HTML <tr id=r1 class=l1> <td><img class=plusminus id=r1c1 src=assets/images/plus.png border=0 />3/10/12</td> <td></td>
I have the following html table <table id={64ED3A94-5833-4CC7-869F-CCE583B498BE} class=ms-listviewtable width=100% cellspacing=0 cellpadding=1 border=0 xmlns:o=urn:schemas-microsoft-com:office:office
I have the following html : <div class=mainmenu> <ul class=blue> <li class=><a href=tst/ id=a1_up><span
I have the following html and css code: <!DOCTYPE HTML> <html> <head> </head> <body>
I have the following html: <label wicket:id=drugSearchResult.row.item.label for=drug_1>[Drug XYZ] <span wicket:id=drugSearchResult.row.item.info>[Information, Price, Other]</span> </label>
I have the following HTML <div class=myclass value=1> <div> <div class=myclass value=> <a class=popup
I have the following HTML: <ul> <li>FIRST</li> <li>SECOND</li> <li>THIRD</li> <li>FOURTH</li> <ul> And the following
I have the following HTML page and the background color for the content is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.