Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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