Javascript in postings

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Registered User
Posts: 66
Joined: Wed Mar 16, 2005 9:04 pm
Location: Berlin, EU

Javascript in postings

Post by SpacePower »

In my forum (see below) - special htmlcode-tags are allowed e.g. a and img. So when I posting something with a link

Code: Select all

<a href="" target="_blank">Spearhead-Home Forum&Archives</a>
it is shown as a link.

I know to post html-tags is very restricted in the phpbb-forum if I have forgotten "" around a value the whole property will be removed.

What I want to do is placing a javascript-function in the overall_header.tpl-header which will open a new window.

I would like to post this:

Code: Select all

<a href="" target="_blank" onClick="javascript:openNewWindow('We at Lokerse');return false" onMouseOver="window.status='We at Lokerse';return true">Pics from the Lokerse feesten</a>
But after submitting the posting onClick and onMouseOver are removed.

Is there a chance to manage this?
Power to the Peaceful
My forum(s):
My website:


Return to “2.0.x Support Forum”