|
|
| Question ID: |
Q1022 |
| Question: |
Is it possible to run a JavaScript function when an item from the menu / site map is selected, instead of opening a URL? |
| Product: |
Sitexpert |
Yes, you will need to modify the 'Destination URL' property of an item (in the layout tab). Instead of setting a URL, enter:
javascript:functionName (args);void(0);
For example:
javascript:myFunction ('arg1','arg2');void(0);
Please make sure you use single-quote characters (') only. Do not use double-quote characters ("). |
|
|