View Full Version : disable dragging link to address field
12-20-2006, 06:16 PM
You could do something like this:
<a href="#" onclick="location.replace(NEW LOCATION)">Link</a>
Then when you dragged the link into the address bar, it would point at '#'
NOTE: NOT RECOMMENDED!!!!!
This is horrible for accessibility, since a user with JS disabled will not be able to use the link
I was hoping for some magic metadata tag in the header. I'll brood on this for a while...
12-20-2006, 06:30 PM
I was hoping for some magic metadata tag in the header.
The only way to do what you want is to mask the real link location from the browser. The feature that enables the user to drag the link to the address bar is from the browser, not the code.
That said, it is probably not a good idea to mess with the client's interface.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.