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 8837973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:52:06+00:00 2026-06-14T09:52:06+00:00

I am trying to do this: $(#canvasDiv).mouseover(function() { var pageCoords = ( + e.pageX

  • 0

I am trying to do this:

$("#canvasDiv").mouseover(function() {
    var pageCoords = "( " + e.pageX + ", " + e.pageY + " )";
    var clientCoords = "( " + e.clientX + ", " + e.clientY + " )";
    $(".filler").text("( e.pageX, e.pageY ) : " + pageCoords);
    $(".filler").text("( e.clientX, e.clientY ) : " + clientCoords);
});

and in the console I get this:

Uncaught ReferenceError: e is not defined

I don’t understand… I thought e is supposed to be a variable that JavaScript has already set…help?

  • 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-14T09:52:08+00:00Added an answer on June 14, 2026 at 9:52 am

    Change

    $("#canvasDiv").mouseover(function() {
    

    to

    $("#canvasDiv").mouseover(function(e) {
    

    True, the first parameter to the callback is pre-defined, but in order to use it you must alias it through an argument name. That’s why we specify e as the argument. In fact, it’s not required that the argument name is e. This will work too:

    $('#canvasDiv').mouseover(function( event ) {
    
    });
    

    But you must alias the event object through the name event in the function callback.

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

Sidebar

Related Questions

I am trying this but is not working... why? <html> <body> <script type=text/javascript> var
After trying this simple console input with 5, the result is shown as 53
I'm trying to execute this script through JDBC (it's SQL Server): DECLARE @var VARCHAR(10)
im trying this: NSNumber *num1; NSNumber *num2; self.addNumberOfRoundsText.text = [num1 stringValue]; self.numberOfRoundsText.text = [num2
I´m trying this on Opera 10 and doesn´t work: $('input').keydown(function(){ return false; }); This
I was trying this: $(document).ready(function () { $(.qa-a-count).appendTo(.qa-q-item-main); }); But there are a lot
I am trying this function, however something is wrong. I stored the name John
Am trying this on my chrome debugger console, and am getting a SyntaxError ;
I am trying this regex (?<!(John|Joe)) (Taylor) On this text John James Taylor but
I'm trying this quiz in the Chrome console: Quiz I can explain most of

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.