Created a window pops up on jQuery which is caused by such a reference
<a href="" id="window"> Open Window </ a>
When clicked on an empty link throws me to the home page ... how to be and what to do?
-
☆ A M B ☆
- 24,524 Posts
Your javascript onclick function needs to return false to stop normal browser handling of a click on a link. If the link click is processed by the browser, it’s an invalid link so the 404 page will be displayed (in MODx that’s resource #1 by default).
Are there any tools which will be announced Modx link false ??
-
☆ A M B ☆
- 24,524 Posts
That has nothing at all to do with MODx. It’s strictly up to your Javascript to handle it.