bit of help with some javascript please

  tomleady 14:30 05 Jul 04
Locked

hi, i'm using the below javascript code to launch pop-up pages when a link is clicked.

but i need to be able to add scrollbars to it.

code:

function link(text,width,height){
newWin=window.open(text,"","width="+width+",height="+height+",top=50,left=50");
}

link code:

//a href="javascript:link('jpopups/pop.htm','300','250')">

i've tried adding some code, along the lines of 'scrollbars=yes' but it doesnt work.

any ideas?

  Eric10 19:43 05 Jul 04

code:

function link(text,width,height){ newWin=window.open(text,"","width="+width+",height="+height+",scrollbars="+scrol+",top=50,left=50"); }

link:

//a href="javascript:link('jpopups/pop.htm','300','250','yes')">

  Eric10 19:45 05 Jul 04

sorry missed the 'scrol' in the function definition.

code:
function link(text,width,height,scrol){ newWin=window.open(text,"","width="+width+",height="+height+",scrollbars="+scrol+",top=50,left=50"); }

  tomleady 09:27 06 Jul 04

eric10, you are a star. thanks so much!

This thread is now locked and can not be replied to.

Qualcomm Snapdragon 835 benchmarks: Antutu, Geekbench 4, GFXBench and PCMark results

1995-2015: How technology has changed the world in 20 years

This animated short film tells a moving story of domestic violence for Refuge

New iPad 2017 preview: Apple's affordable but underspecced new iPad may appeal to the education…