I have setup a primitive site management system. I have a script which allows me to insert, update, and/ or delete entries from a database. I insert all my content this way.

My problem is the following:

I tried to put in a link to a page which uses javascript. the link should look like the following

<a href="javascript:window.open("page.html","newPage","toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=200,height=200")">LINK</a>

however, when I view the page and I rollover the link i only see this "javascript:window.open( " in the status bar. The link does not work.

I have tried using addslashes() and stripslashes() when inserting and extracting from the DB.

What can I do to fix this ?