Forum Moderators: open

Message Too Old, No Replies

Need spiders to follow links into a new window

"Open Browser Window" command in Dreamweaver

         

Sean_023

4:45 pm on Mar 10, 2004 (gmt 0)

10+ Year Member



Hello if anyone can asnwer this would Be Perfect :D

I created alot of web sites that have an Index page then once u slick to Enter it opens a browser window at a Fix Size so i don't have the top Internet Explrer bar but then again i doubt that Google detects it. Therefor only the INdex page links back to my site and all the rest of the web site is Not detected by G is there a way to have that open Browser window detected by G So i get all the pages linking back to me From G.
Thanks again

tedster

6:49 pm on Mar 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This would apply to all spidering bots, not just Google. If you are using javascript to open links in a new window, most spiders will not follow. One workable approach is to offer both a regular link and the javascript link. This has a side benefit -- people who have javascript turned off will also get to see the next page, but just in the same window.

Let's assume your original code uses a function called newWindow() to open newpage.html in your fixed size, chromeless window. Your original code looks something like this:

<a href="#" onClick="newWindow('newpage.html')">Link Text</a>

What you need is something like this:

<a href="newpage.html" onClick="newWindow('newpage.html');return false">Link Text</a>

The "return false" section will keep the browser from loading the linked page in the old window, as long as javascript is turned on. This way you have a link that will open the page in your new window for most users, and still give the search engine spiders a normal HTML link they can follow.

I don't know how you do this in Dreamweaver (haven't used it for many years) but if you have trouble, we have a forum called WYSIWYG Editors [webmasterworld.com] that can help you with that.

Sean_023

4:05 pm on Mar 11, 2004 (gmt 0)

10+ Year Member



Great thanks.