I have a page on which I want to put a section of text and links on that are hidden by default but appear when the user clicks a link to show the hidden area. I'd like to do this by wrapping it in something like <div style="display: none;">....</div> and having some javascript change the style to display: block when the user clicks the "show" link. Will Googlebot see this hidden text and index the links within it?
Is there a recommended way of setting the style in the div? Does it matter to Google whether I set the style right in the div or have a CSS style declared in the file or should it be in an external stylesheet? Or will Google index it no matter which way it's done? Thanks.