0

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" 
onclick="javascript:createNewDocumentWithProgID
('{@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?

Ben Pilbrow
  • 11,995
  • 5
  • 35
  • 57
Ryan
  • 1

1 Answers1

1

I think you want:

<a href="#" ...
Scott Keck-Warren
  • 1,670
  • 1
  • 14
  • 23
  • 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 02 '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 03 '11 at 12:08