Solved

silly question (<a>)

Posted on 2002-05-14
11
207 Views
Last Modified: 2010-04-09
I have several links whose only purpose is to contain information without taking up much screen space, ie the users right click on these one word links and "copy link location" to get several hundred characters of text.

my question is - is there any way for me to have just that text in the link? ie, without "http://" without relative paths or any other tags (mailto:, etc)?  If not, what's the least amount of extra text I can get it to display?

thanks
0
Comment
Question by:_D_
11 Comments
 
LVL 12

Expert Comment

by:lexxwern
ID: 7010177
<a nohref ... ></a>
0
 

Author Comment

by:_D_
ID: 7010250
hmm, nohref seems to be an <area> thing for image maps
0
 
LVL 12

Expert Comment

by:lexxwern
ID: 7010361
nohref can be used anywhere href is used. please explain futher if this isn't what you are looking for.
0
 
LVL 12

Expert Comment

by:lexxwern
ID: 7010363
or this may help too
<a href="#" ... ></a>
0
 

Author Comment

by:_D_
ID: 7010395
nohref definitely doesn't help here.
I need to have a link: <a href='text'>link</a>
and be able to right-click on it and copy 'text', not 'http://relative/path/text'

with # it sets it up as an acnchor on the current page, the URI for the page is added to the link.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 12

Accepted Solution

by:
lexxwern earned 50 total points
ID: 7010403
i dont think that is possible. sorry.
all browsers automatically add he environment path to the link.
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 7010425
Indeed is impossible to do.
0
 
LVL 1

Expert Comment

by:emeysenburg
ID: 7010476
You could use a javascript popup window with the text in it. The use could copy the text then close the window when they are done. Not quite as easy as a right click, but it would work and take away the need to remove the http:
0
 
LVL 12

Expert Comment

by:lexxwern
ID: 7010559
i think _D_ is doing this because he has a website that uses frames and he wants to protect the actual path of the page? am i correct _D_?
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7010733
<a href="JavaScript:x('1')">link</a>

Then put this in the head:
<script language="JavaScript">
<!--
   function(pntr)
   {
      newloc='http://relative/path/text'+'pntr';
      window.location=newloc;
   }
//-->
</script>

0
 

Author Comment

by:_D_
ID: 7012434
lexx, no actually, I have a lot of text (hundreds of characters) that has to be available to the user, but not take up all of the screen space.  right now I did a <a href='text:textdatathatineed'> and the user just has to delete the 'text:' after copying and pasting, which works, I guess, but if anyone has any better ideas, I'm all ears.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Retrieve values of an HTML form using JQUERY 2 39
How can I   ajax html table  rows? 20 63
Angular 2 - Issue in page Layout 2 48
html form to write data to csv 24 97
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now