0

I must add a JavaScript to Sharepoint 2013.

I must add by JavaScript dropdownlist with links. How could I add a Link to dropDownList which will work at site Sharepoint 2013.

2

you can reference scripts in the masterpage of this forma:

<SharePoint:ScriptLink language="javascript" name="custom.js" OnDemand="true" runat="server" Localizable="false" />

Referncing a java script inside my master page will not fire

| improve this answer | |
0

You can either add directly into the sharepoint page where sharepoint list sits using content editor webpart, or use Script editor webpart. You can also inject javascript in list view webpart using JSlink.

| improve this answer | |
  • 1
    but I triedScript Edytor, and Content Edytor, and itdrop me a Javascript code. – Grzegorz Z Sep 12 '14 at 12:58
  • When you say "it drop me a JavaScript code", you mean that you see the code in the browser? I'm sorry, but I have to ask this, did you enclose the code in <script></script> tags? Can you show what you have done so far? – cubanGuy Sep 12 '14 at 13:17
  • @cubanGuy This is a duplicate question. His original question (see my comment below question for link) has the code he tried. – wjervis Sep 12 '14 at 19:25

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