Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm getting an IE error with these lines of code:

<a href="javascript: return false;" onmouseover="window.status='{@EncodedAbsUrl}';  
return true" onmouseout="window.status=''; return true" 
('{@EncodedAbsUrl}', '', 'SharePoint.OpenDocuments', false);"><xsl:value-of 
select="@FileLeafRef" /></a>

Error reads "'return' statement outside of function". (It's non-intrusive - just the yellow triangle in the bottom of the browser window.)

I know very little about javascript, so I'm hesistant to correct. Any thoughts, guys?

share|improve this question

I think you want:

<a href="#" ...
share|improve this answer
Scott, thank you very much for your answer! That little tip helps me and my coworkers immensely - I hope karma rewards you well for your kindness! THANKS AGAIN!! :D – Ryan May 2 '11 at 18:40
@Ryan, if that worked for you can you check the check mark next to the answer so I get credit. – Scott Keck-Warren May 3 '11 at 12:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.