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

  • Home
  • SEARCH
  • 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 9096627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T23:54:01+00:00 2026-06-16T23:54:01+00:00

Can someone please explain why am I not getting this alert message when clicked

  • 0

Can someone please explain why am I not getting this alert message when clicked on the button?
I just started learning HTML and this is the code given in my book which is supposed to work but it is not working when i execute it.
What is the problem? I am using Mozilla Firefox Beta version.

<?xml version="1.0" encoding="UTF-8"?>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <title>This is a test page</title>
</head>
<body>
    <h1>This is a test Paragraph</h1>
    <button type="button"
    onclick="alert('You've clicked me.')">Click me!</button>
</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-06-16T23:54:02+00:00Added an answer on June 16, 2026 at 11:54 pm

    You have a syntax error. You need to escape the apostrophe in “you’ve”.

    alert('You\'ve clicked me.')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a feeling this XML is not valid, can someone please explain why?
Can someone please explain to me why these boxes are not lined up? http://seoplannow.com/comments.html
Can someone please explain the following syntax $(function(){ $(.myPage).live(click, myHandler); // NOT THIS BIT!!
Can someone please explain why I'm getting this error? My code: def x(n): if
Can someone please explain why this Emacs regexp find_class \(\w+|([^)]+)\) \(\w+|([^)]+)\) does not match
Can someone please explain me why would a UDP Server not need to use
Can someone please explain to me how this responsive approach works? This was done
Can someone please explain this phenomenon? I am using Mojarra 2.1.6 - Glassfish 3.1.2.
Can someone please explain why this works. Here is the scenerio. I have a
Can someone please explain to me why the max-height is not working on table

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.