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?

1 Answer 1

1

I think you want:

<a href="#" ...
2
  • 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, 2011 at 18:40
  • @Ryan, if that worked for you can you check the check mark next to the answer so I get credit. May 3, 2011 at 12:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .