Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Hiding a link's url - CSS


  • Please log in to reply

#1
hihassan

hihassan

    Member

  • Member
  • PipPip
  • 61 posts
Hi,

I am working on my blogsite, don't know much of CSS but I found a way to hide the URL of my link in the Window Status using;

<a href="link" onMouseOver="window.status=' ' ; return true;" >

However the linked page takes a second or two to load, and while it loads the link appears in the Window Status. Is there any way for me to hide that totally as it loads? also i don't want to show the url of link if someone right click on it...

Thanks.
  • 0

Advertisements


#2
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Not sure about not showing in the browser's address window, but can try visibility: hidden for the page itself. There is really no way to prevent right-clicking except by JavaScript and anyone can disable it and then right-click or just look at the source code.

There may be a way to do an engine rewrite statement on your .htaccess file if allowed to change url in browser window. Personally, I would be very suspicion of any site trying to hide links and URLs and ban them.

Ron

Corrected style code.

Edited by Major Payne, 15 July 2008 - 08:12 PM.

  • 0

#3
Ax238

Ax238

    Tech Staff

  • Technician
  • 1,323 posts
I would echo the same concerns as Major already has. To do this in javascript, you could try using:
<a href="" onClick="window.open('link', '_blank', '');">Link</a>

This will open the 'link' in a new window without showing the link's URL in the status bar, it will just show the current page's URL.

Regards,

Ax
  • 0

#4
hihassan

hihassan

    Member

  • Topic Starter
  • Member
  • PipPip
  • 61 posts

I would echo the same concerns as Major already has. To do this in javascript, you could try using:

<a href="" onClick="window.open('link', '_blank', '');">Link</a>

This will open the 'link' in a new window without showing the link's URL in the status bar, it will just show the current page's URL.

Regards,

Ax


that works... thanks a lot :)
  • 0

#5
Ax238

Ax238

    Tech Staff

  • Technician
  • 1,323 posts
:) Great! Glad to hear it.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP