Jump to content

Archived

This topic is now archived and is closed to further replies.

michaellunsford

javascript popup window

Recommended Posts

I need a popup window with no scrollbars, no toolbar, etc. The code I'm using right now makes firefox display [object Window], and then popup the new window (not good).
[code]<a href=\"javascript:window.open('images/cars/bigger_1_.html','carpics','location=0,status=0,scrollbars=1,resizable=1,directories=0,toolbar=0,width=640,height=480');\">
note: quotes are escaped due to some bug in this forum[/code]
This is clicking on an image in a long list. So modifying the code to <a href="#" onclick="window.open..."> makes the page jump back to the top. and doing the target="_blank" leaves the toolbars, scrollbars, etc. So, how to do this?

Is there a way to change the current window's "location=0,scrollbars=1" etc in javascript without having to use window.open?

thanks for any help!

Share this post


Link to post
Share on other sites
Haha! Fixed it. Redundant link and window.open javascript.

[code]<a href="images/cars/bigger_1_.html" target="carpics" onClick=\"javascript:window.open('images/cars/bigger_1_.html','carpics','location=0,status=0,scrollbars=1,resizable=1,directories=0,toolbar=0,width=640,height=480');\">
note: quotes are escaped due to some bug in this forum[/code]

If there is a better way, don't be shy.

Thanks!

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.