Forum Moderators: open

Message Too Old, No Replies

How much does Java Script hurt?

Specifically with regard to Netscape fix...

         

Jabzebedwa

1:55 pm on Jan 9, 2003 (gmt 0)

10+ Year Member



Hello,
I am getting the picture here that simple is best when appealing to Google. As a matter of course, I always put this javascript in the head of my pages:
~~~~~~~~~~~~~~
<script language="JavaScript">
<!--
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW ¦¦ innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
~~~~~~~~~~~~~~~~~~~
I just did an HTML validation and it indicates a refresh occurs at my page. I am wondering if this js is hurting me with Google.
Thanks for any input.
BTW, I feel like I've died and gone to se heaven since I found you all.
Jabzebedwa

korkus2000

1:58 pm on Jan 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Google doesn't read javascript so it should not effect its crawl. Interesting that the validator choked though. Try using the sim spider [searchengineworld.com] and see what it does.

4eyes

2:09 pm on Jan 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Jabzebedwa

I normally include this with any other scripts on the page and dump them in one external js file.

I think you are probably OK leaving it on-page. Dreamweaver inserts this code by default, so there are an awful lot of sites that would be buried if this was widely penalised.

'Probably' isn't good enough for me, hence the external js file:)

jomaxx

4:35 pm on Jan 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Could be related to the double comment tags in that sample code.

Jabzebedwa

4:46 pm on Jan 9, 2003 (gmt 0)

10+ Year Member



Ok. Thanks for the excellent input:)

Jab