![]() |
making clickable link without http part?
is it possible to make a working link without the http part??
example: <a href="www.google.com"> test </a> obviously if u put that in a html file it wont work.... |
No, it's not possible.
|
I think only if you're linking to a page on the same site. You can use a /
|
kinda sucks.. so u must put the "http" part.. eh
|
the only way would be to use an htaccess redirect but the http:// would need to be in htaccess
|
why would you wanna do that?
|
Quote:
what's the deal about it? what are you trying to achieve? |
Yes, but it involves intercepting the click event with JavaScript.
Essentially, you need http://, but it's possible without altering the markup that you provided above. All of your links could look like what you described. Only a few lines of code assuming you're a JavaScript ninja armed with jQuery. |
i hate that shit too, few times i make such links in html source and then i get www . mysite . com / www . thaturlfucking . com . html
|
so why do you wanna do this..?
http://calmdev.com/gfy/click.php
i wouldn't suggest using js for the task, but it's possible... Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
All times are GMT -7. The time now is 07:13 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123