PDA

View Full Version : rusty brain JS not workin'!


dirtystim
04-24-2003, 10:04 AM
Hi guys, can anyone help me on my site here >> http://www.alanwhitton.co.uk/ the link on the left referring to 'Jett's tribute page' >> the word "here". Well the javascript works ok [pop up] but then the page behind it goes to a 404!! I know its somet' obvious but dang it I don't know what! :'(
I'm using D weaver MX !

thx guys!!!

peace.

Jon Hanlon
04-25-2003, 08:02 PM
This is rubbish:
<a href="JavaScript;" onclick="...">

The Javascript protocol attempts to display the result in the browser, so it's looking for the page called ';'.

Change it to be:
<a href="#"

Also, you should return false from the onclick:
<a href="#" onClick="MM_openBrWindow('tribute.html','tribute','width=669,height=596');return false">

dirtystim
04-27-2003, 03:03 AM
Hey John, thx dude, Iwill implement this as soon as!

Hey thx dude!

d