Help with this link code

G

Guest

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

Similar Threads

Remove address bar from this pop up... 2
popup blocker problem 3
Position a "popup" window 8
javascript 4
JS\Hyperlink 2
new window with 'spawn' 6
Function{} 1
Iexplorer without BAR and in Full screen mode 11

Top