Jump to content


Photo

javascript popup window


  • Please log in to reply
1 reply to this topic

#1 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 05 May 2006 - 03:20 PM

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).
<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
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!

#2 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 06 May 2006 - 06:22 PM

Haha! Fixed it. Redundant link and window.open javascript.

<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

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

Thanks!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users