I am new user of cmsmadesimple.
I am just trying to make a new html page.
I am also trying to add simple javascript alert in the onclick event of a button.
Now I have two question.
(1) Where to add the javascript? I have created a new javascript file. Then after adding the new html page I have added the following line in the 'head tags' under the 'option' tag.
In the test.js I have written a simple function to make an alert.
(2) Now in the editor when ever I add the line 'onclick="javascript:makealert()" ' in the button tag and submit it the editor itself is deleting it.
So when after saving i am again opening the page in the editor and viewing the html view I found that the string I have added is diaappeared.
Naturally when viewing the page in the browser, clicking on the button nothing is happening.
Please help me.
I need urgent help.
Need urgent help....Help me please
-
cyberman
Re: Need urgent help....Help me please
Welcome on CMS made simple ...
{literal}{/literal}
You have to mask it likepralay wrote:
{literal}{/literal}
-
pralay
Re: Need urgent help....Help me please
Thanks a lot!!
But please also help me about the second point..that is when I am adding "onclick='makealert()'" on the button tag in the html view in the
editor and save it..it does not get seved. When I again opened that, I saw it disappeared.
Please help me about this.
But please also help me about the second point..that is when I am adding "onclick='makealert()'" on the button tag in the html view in the
editor and save it..it does not get seved. When I again opened that, I saw it disappeared.
Please help me about this.
