Forum Moderators: open

Message Too Old, No Replies

Is anything required in Head for this js

It works - but is it valid

         

LateNight

8:19 pm on Dec 27, 2003 (gmt 0)

10+ Year Member



I am using JS on some thumbnails that show full image when clicked on. They seem to work fine, but I do not know if they are valid -ie must I define something in <HEAD>?

<a href="Detailed Image" onclick="javascript:window.open('images/detailed.jpg', 'pawin', 'width=519,height=609,scrollbars=1'); return false;">

Thanks in advance.

CloudLong

10:35 pm on Dec 27, 2003 (gmt 0)

10+ Year Member



no need any code in head for this simple code.

[edited by: CloudLong at 10:40 pm (utc) on Dec. 27, 2003]

CloudLong

10:40 pm on Dec 27, 2003 (gmt 0)

10+ Year Member



no need any code in head for this simple code. however, I see you put return false; its a weird code.. usually I will use this code instead:

<a href="javascript:void(0);" onclick="window.open('images/detailed.jpg', 'pawin', 'width=519,height=609,scrollbars=1');">

OR

<a href="#" onclick="window.open('images/detailed.jpg', 'pawin', 'width=519,height=609,scrollbars=1');">