Need urgent help....Help me please
Posted: Tue Sep 26, 2006 5:41 am
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.
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.