[TYPO3] plain HTML doesn't allow javascript?

Søren Vedel sv at workhouse.com.br
Fri Jan 27 20:55:02 CET 2006


Hi Dieter,

Did you put this into an HTML-content element? If true - this won't 
work. You have to put it inside your Main TS-Template Setup field.

But if you for example put this:

<a href="#"  onfocus="blurLink(this);" 
onclick="window.open('index.php?id=34&type=98','printwindow','resizable=yes,toolbar=no,scrollbars=yes,menubar=no,width=800,height=500');"><div 
id="print">printpage</div></a>

into your HTML-content element, it works!

Best wishes
Søren Vedel


dieter orens wrote:
> I try to add 'onclick' events to links using the 'plain html' element, 
> but this doesn't seem to work, is that correct?
> I include my script like this:
> 
> page.headerData.4 = TEXT
> page.headerData.4.value (
> <script language="JavaScript" src="fileadmin/js/styleswitcher.js" 
> type="text/JavaScript">
> </script>
> )
> 
> Any help?



More information about the TYPO3-english mailing list