Welcome to WebmasterWorld Guest from 54.242.138.24

Forum Moderators: mademetop

Message Too Old, No Replies

Will google pass juice from rel attribute?

     

lleemon

1:09 pm on Apr 12, 2011 (gmt 0)

5+ Year Member



If we have a jQuery link like:

<a href="#" id="link1" rel="popup-page.html">Link text</a>

Will google see the rel url and pass juice to it?

yandr

1:47 pm on Apr 12, 2011 (gmt 0)



This is really ugly. Why are you doing that?

lleemon

3:22 pm on Apr 12, 2011 (gmt 0)

5+ Year Member



Looking for a jQuery lightbox that has a link in the lightbox.

That is how I am doing it today. Do you know of a better option?

phranque

11:32 pm on Apr 12, 2011 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



the rel attribute is defined by conventional DTDs as being a Link type [w3.org] rather than a uri.

ergophobe

10:12 pm on Apr 14, 2011 (gmt 0)

WebmasterWorld Administrator ergophobe is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



<a href="popup-page.html" id="link1" onclick="window.open('popup.html');return false;">Link text</a>

Even better, use the DOM to hook into normal HTML so that it simply looks like

<a href="popup-page.html" class="lightbox">Link text</a>


I can't think of any reason for the <a href="#"> or <a href="javascript:blah blah blah"> syntax

phranque

1:04 am on Apr 15, 2011 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



progressive enhancement:
it should work properly without javascript enabled.
then figure out how to make cool stuff happen with event handlers.
then make sure it is still usable without javascript.

ergophobe

10:08 pm on Apr 18, 2011 (gmt 0)

WebmasterWorld Administrator ergophobe is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



what phranque said - which is basically the theory behind the code I posted previously.

I was just forced to order 12 products from a site where every single link was javascript driven. Couldn't open in a new tab (thus no side-by-side comparison). Terrible. I would have abandoned if anywhere else had this stuff.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month