Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: open
Yes, it's a pretty safe assumption.
1. It brings your content closer to the top of the html page. This is great for the spiders. Sometimes when there is lots of js on the page, they never get to your content at all, and you end up with only the js in their database!
3. The js file is cached by the client, meaning that after one download, all other pages will load faster.
>> "using a js redirect in an external file none of the engines will know this if it is external..."
I've heard this. Won't the search engines index the page that you are re-directing to instead of the actual page? <<
No, the spiders almost never call the js file and will not see the redirect URL at all. Right now search engines would have a lot of security issues trying to automatically run your js on their machines to find out what it does.
Google has said they "reserve the right to check your js in the future", but even this technical monster doesn't routinely check js files right now.
So the head section is safe. What about the <body>. Are external js files safe to use in the body area?
My apology to ponytale -- this question was ignored for an entire month. A very belated welcome to the Forum, and I hope this information helps, now or in the future.
To close the pop-up window when the user's login is submitted, you could call it by including the onSubmit() event handler in the login FORM tag:
<form name="loginform" onSubmit()=window.close()>form content goes here</form>
However, that code might be problematic if the submitted login doesn't validate. You could account for that possibility by having a failed login generate its own, new popup window for the failure message.