Help with this link code

M

Memo

Hi, I need to open a new window with no scrollbars and specific size,
i got this sample code from a web page,

<A
HREF="javascript:void(0)"onclick="window.open('http://www.google.com/','linkname','height=380, width=300,scrollbars=no')">Link Name</a>

and it works with http links,
but it doesn't work with local files like gallery/sample1.htm,
what would be the right code for this local file?

Thanks.
 
M

Murray

HREF="javascript:void(0)"
onclick="window.open('gallery/sample1.htm','linkname','height=380,
width=300,scrollbars=no')">Link Name</a>

(note the space inserted AFTER void(0) and before onclick)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top