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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:36:53+00:00 2026-06-01T15:36:53+00:00

In order to show the input field for a cc: adress I am trying

  • 0

In order to show the input field for a cc: adress I am trying to automatically click the “Add Cc” span in gmail from a chrome extension.

The span looks like this:

<span id=":25j" class="el" role="link" tabindex="2">Add Cc</span>

It has no event listeners/onclick defined as far as I can tell.

I tried

   $('iframe').each(function() {
    $('span:contains("Add Cc")',this.contentDocument).first().click();
   }

and

   $('iframe').each(function() {
     $('span:contains("Add Cc")').first().trigger( jQuery.Event("click"));
   }

UPDATE: in fact the spans are inside an iframe.

Can somebody give me a pointer how to trigger a click on these spans?

Is there some way I could observe/record what events get fired when I manually click on the link?

UPDATE: Thanks @veeTrain for pointing out how to set breakpoints in Chrome Dev Tools

  • 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-01T15:36:54+00:00Added an answer on June 1, 2026 at 3:36 pm

    If you look at the DOM you will see that the input is already there. You should be able to get it to show up with:

    jQuery('textarea[name=cc]').parent().parent().show() 
    

    However it seems as if I can’t test this from my console due to the way that the page is setup. They use iframes, etc. Maybe you CAN get to it from a plugin?

    You might also try to find a better way to get at the parent element rather than using parent().parent(), I would, but I can’t test this out.

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

Sidebar

Related Questions

I'm doing real-time DSP on Silverlight microphone input in order to show a volume
In order to show an object on a toolbox and allow user to drag/drop
In listening for key events in ActionBarSherlock in order to show the overflow menu
I am using simple order by clause to show products according to available quantity
order by in query is taking to much time in MySQL. SHOW PROFILES shows
I created two arrays. First the arrays show the elements with no order whatsoever.
Order deny,allow deny from all allow from xx.xx.x.xx RewriteRule . - [F] I have
in order to recover data from server I use XMLHttpRequest and my code is
The input below sorts submissions by a timestamp field called datesubmitted in reverse chronological
// Add an additional field to the checkout within a new fieldset add_filter('eshopaddtocheckout','eshop_extras_checkout'); function

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.