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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:05:26+00:00 2026-06-09T12:05:26+00:00

I am trying to create a link that people can put on their own

  • 0

I am trying to create a link that people can put on their own websites that links back to their profile on my site.

I have created the ‘widget’ using javascript so have a .js file that simplified does this…

document.write("Visit my profile at...");
document.write("    <a href=\"myprofilelink.html\">Click To View</a>");

I want to be able to create a call to it that automatically includes the profile link in the javascript so for example, something like….

<script src="widget.js" id="myprofilelink.html></script>

Can someone point me in the right direction?

  • 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-09T12:05:28+00:00Added an answer on June 9, 2026 at 12:05 pm

    You could create a variable before including your widget script.

    <script type="text/javascript">var profileLink = "myprofilelink.html";</script>
    <script type="text/javascript" src="widget.js"></script>
    

    Then you can just use the variable in your widget.js file:

    document.write("<a href=\"" + profileLink + "\">Click To View</a>");
    

    If you want to learn about how to work with more advanced JavaScript widgets I’d recommend reading Developing An Embeddable Javascript Widget.

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

Sidebar

Related Questions

I am trying to create a link that can be sent via email which
I have a video site where people can comment under each video. I'm trying
Using CodeIgniter I am trying to create a link that the user can click
Am trying to create a symbolic hard link so that I can move chrome's
I'm trying to create a link that points to URL 1 normally and to
I'm trying to create a logout link that gets included into an authorized area.
I'm trying to create a cancel link that looks like an x with a
I'm trying to create a link that just triggers a javascript function with parameters
I need help trying to create a link that submits an edit form. Let's
In this jsfiddle I'm trying to create a link that covers the entirety 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.