Web Hosting Forum | Lunarpages

Author Topic: it's not working newwindow=window.open  (Read 14426 times)

Offline tcl

  • Spacescooter Operator
  • *****
  • Posts: 30
it's not working newwindow=window.open
« on: April 30, 2013, 09:34:17 AM »
hi,

not working this
Code: [Select]
<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
    newwindow=window.open(url,'name','scrollbars=0,status=0,resizable=0,location=0,toolbar=0,height=300,width=800');
    if (window.focus) {newwindow.focus()}
    return false;
}
// -->
</script> 

I want to hide fields in the scrollbars, status, location, toolbar and all

For all browsers

Thanks

Offline MrPhil

  • Senior Moderator
  • Berserker Poster
  • *****
  • Posts: 6190
Re: it's not working newwindow=window.open
« Reply #1 on: April 30, 2013, 01:15:19 PM »
Try var newwindow = window.open.... JavaScript likes to have variables declared with "var".
Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-

Offline scanman20

  • Senior Moderator
  • Über Jedi
  • *****
  • Posts: 1553
    • http://www.notonebit.com
Re: it's not working newwindow=window.open
« Reply #2 on: May 01, 2013, 05:34:48 AM »
Works fine for me: http://jsfiddle.net/j08691/PSYKz/. How are you calling the function?
Even a broken clock is right twice a day.
NotOneBit.com
MCSE - MCSA - MCP (<- unused since 2006!)

Offline tcl

  • Spacescooter Operator
  • *****
  • Posts: 30
Re: it's not working newwindow=window.open
« Reply #3 on: June 14, 2013, 01:02:19 PM »
Thanks MrPhil.

Now it working.

Offline mithcd

  • Intergalactic Superstar
  • *****
  • Posts: 133
Re: it's not working newwindow=window.open
« Reply #4 on: November 09, 2014, 03:33:08 PM »
Just to let everyone know, this is not working anymore. It started on FF version 33.0. Still looking for a solution though.

 

Share |