Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

PHP made my Javascript disapear

I've been working on teaching myself Mysql and PHP, so that I can build some dynamic pages that are easier for the site owner to keep up, instead of me having to do it all for her. In order to run the data base I, of course, had to change the pages from .html to .php. I had used a couple javascripts on a page to break out of the frames for links. The problem is that when I changed the page to .php and uploaded it, the links disappeared for the javascript. I noticed the same thing way back when I was still using Bravenet for my password gateway. What causes this and how can I fix it?

Here is the script I used:

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
if(top.location.href != self.location.href)
document.writeln('<A HREF="records.html" TARGET="_top">Personal Records</A>');
// End -->
</script>

I'd really appreciate any solutions to this problem. Thanks.
[978 byte] By [Ralyn] at [2007-11-11 8:19:02]