Jump to content

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!
Link to comment
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!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.