Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
40
rated 0 times [  42] [ 2]  / answers: 1 / hits: 55789  / 11 Years ago, tue, october 1, 2013, 12:00:00

I tried window.open and want the javascript to open a new browser with new url and wants the new window to be resizable and scrollable



i tried



window.open(someurl, '_blank','windowOpenTab', 'scrollbars=1,resizable=1,width=1000,height=580,left=0, top=0');


Edit1: tried window.open(url, '_blank','windowOpenTab', 'scrollbars=1,resizable=1,width=1000,height=580,left=0,top=0');
still no luck



read about window.open from http://www.javascript-coder.com/window-popup/javascript-window-open.phtml but no luck :(


More From » window.open

 Answers
32

According to MDN you can only have 3 parameters in that function.



window.open(strUrl, strWindowName[, strWindowFeatures]);


Demo here - I droped the '_blank' and made a demo with small window just to make the scrollbar showup.



So you can use:



window.open(someurl, 'windowOpenTab', 'scrollbars=1,resizable=1,width=1000,height=580,left=0,top=0');

[#75302] Monday, September 30, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ednakarolinal

Total Points: 187
Total Questions: 106
Total Answers: 118

Location: Saint Helena
Member since Mon, Jan 16, 2023
1 Year ago
;