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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:33:04+00:00 2026-05-14T04:33:04+00:00

i am having the link like <a href=http://twitter.com/home/?status=’.$markme_ddesc.’ onclick=OpenPopup(this.href); return false>Click Here to See

  • 0

i am having the link like

<a href="http://twitter.com/home/?status='.$markme_ddesc.'" onclick="OpenPopup(this.href); return false">Click Here to See Popup</a>

for bookmarking the article clicked to twitter .. The above one just add the articles message to twitter.. But i am trying to add my article link also to twitter,..
so i am using the location.href but its not working tat is its not showing me the articles site name..

THe below is the one i tried..

<a href="http://twitter.com/home/?status=\'+encodeURIComponent(location.href)+\'-'.$markme_ddesc.'" onclick="OpenPopup(this.href); return false">Click Here to See Popup</a>

Thanks i advance.. Help me to get out of this…

  • 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-05-14T04:33:05+00:00Added an answer on May 14, 2026 at 4:33 am

    It seems that you’re using PHP, so you could use

    '<a href="...' . urlencode(curPageURL()) . '-' . $markme_ddesc . '...'
    

    where curPageURL is a custom function to get the full URL. (Or use $_SERVER['REQUEST_URI'] if the domain is not needed.)


    But if you really need to attach the URL from client side, you need to use Javascript.

    <a id="xyz" href="http://twitter.com/home/?status=@PLACEHOLDER@-'.$markme_ddesc.'" … >
    ...
    
    // onload:
    var xyz = document.getElementById('xyz');
    xyz.href = xyz.href.replace(/@PLACEHOLDER@/g, encodeURIComponent(location.href));
    

    Of course this will fail if the client doesn’t enable Javascript.

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

Sidebar

Related Questions

I'm having an issue creating a link like <a href=javascript:window.open('www.microsoft.com');>Visit Microsoft</a> using stringbuilder. I
I have a menu like this: <ul id=menu> <li><a href=#home_slider id=home>Home</a></li> <li><a href=#portfolio_slider id=portfolio>Potfolio</a></li>
I am having a link like <a href = '/messages/destroy/<%= @showmessage.id %>'>Delete Message</a> I
I am having a link <a id=test href=text.php>test</a> I have the following jquery code
I'm having this link statement: List<UserGroup> domains = UserRepository.Instance.UserIsAdminOf(currentUser.User_ID); query = (from doc in
Having read this link on RBAR and this , my understanding of RBAR amounts
I'm having trouble getting a sample program to link correctly (in this case against
I am using the jQuery plugin from this site http://mbielanczuk.com/2011/06/jquery-gantt-chart/ . I was able
many doctype use a url link like this <!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN
I have a URL which looks like this: http://www.website.co.uk/en-us/aboutus/thegroup/test.aspx I have a UL LI

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.