Only if form action /?cms_mode=edit
<body id="home"> <form method="post" action="/?cms_mode=edit" id="main"> </form> </body>
then the js edit.js file should be added to the head, otherwise not.
<head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="main.js"></script> <script type="text/javascript" src="edit.js"></script> </head>
Is this possible through jquery / javascript?
And the edit.js flie file should be added after all the other .js file
source share