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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:04:56+00:00 2026-06-07T17:04:56+00:00

I am working on a project where I need to create an embeddable button.

  • 0

I am working on a project where I need to create an embeddable button. I just want to give some code to the clients and ask them to put it where they want the button to appear on their websites. What is the best approach to it? As an example please see the following image:

From OpenCal

I will be really thankful if someone can provide some example code.

  • 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-07T17:04:58+00:00Added an answer on June 7, 2026 at 5:04 pm

    The simplest form would be to provide a hyperlink:

    <a href="http://mysite.com/dosomething" title="DoSomething">Do Something</a>
    

    Or you could use an image button:

    <a href="http://mysite.com/dosomething" title="DoSomething">
        <img src="http://mysite.com/images/a.jpg" alt="DoSomething" />
    </a>
    

    These both remove dependencies on CSS and JS.

    Or you can do it like suggested in your question:

    <script src="http://mysite.com/scripts/embedbutton.js">
        document.write('<link rel="stylesheet" href="http://mysite.com/css/embedbutton.css" />');
        document.write('<div id="mybutton" onclick="DoSomething(event);">DoSomething</div>');
    
        function DoSomething()
        {
            /* action code here */
        }
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a cakePHP project and I need to create a button
I am working on a project with some specific requirement: I need to create
In a PHP project I'm working on we need to create some DAL extensions
I'm working on a project where I need to create a link that when
For a project I'm working on, I need to create objects using different source
I am working on a project where I need to automate some workflows in
I'm working on a project and I need to create an API. I am
I'm working on SS7 project and reached a point where I need to create
I am currently working on a project in java. I need to create a
For a small project that I'm working on I need to create a Windows

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.