Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > How to open window across browsers

Reply
Thread Tools

How to open window across browsers

 
 
ipellew@pipemedia.co.uk
Guest
Posts: n/a
 
      07-13-2006
Hi;

Any one point me to why this js fragment

help_win = window.open('try_01_help.html','Exam Questions Help'
,'width=650,height=800,dependent=yes, top=10,
left=10');

fails in Explorer. Is OK in Firefox etc.

Regards
Ian

 
Reply With Quote
 
 
 
 
web.dev
Guest
Posts: n/a
 
      07-13-2006

http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> Hi;
>
> Any one point me to why this js fragment
>
> help_win = window.open('try_01_help.html','Exam Questions Help'
> ,'width=650,height=800,dependent=yes, top=10,
> left=10');
>
> fails in Explorer. Is OK in Firefox etc.
>
> Regards
> Ian


For the window.open() method, the second argument expects a string to
specify the name of a window. Not to be confused with the name that
appears on the title bar of the browser.

The name value is used for the TARGET attribute, for example an <A>
tag. However, it should not contain spaces. Removing the spaces for
the window name fixes your problem.

window.open("try_01_help.html", "Exam_Questions_Help", ...etc...);

 
Reply With Quote
 
 
 
 
Randy Webb
Guest
Posts: n/a
 
      07-13-2006
web.dev said the following on 7/13/2006 2:54 PM:
> (E-Mail Removed) wrote:
>> Hi;
>>
>> Any one point me to why this js fragment
>>
>> help_win = window.open('try_01_help.html','Exam Questions Help'
>> ,'width=650,height=800,dependent=yes, top=10,
>> left=10');
>>
>> fails in Explorer. Is OK in Firefox etc.
>>
>> Regards
>> Ian

>
> For the window.open() method, the second argument expects a string to
> specify the name of a window. Not to be confused with the name that
> appears on the title bar of the browser.
>
> The name value is used for the TARGET attribute, for example an <A>
> tag. However, it should not contain spaces. Removing the spaces for
> the window name fixes your problem.
>
> window.open("try_01_help.html", "Exam_Questions_Help", ...etc...);
>


There are no spaces allowed in the third parameter to window.open
either. IE will do some strange things when there are, including
ignoring anything after the space or all of it entirely.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Browsers, browsers! Quo vadis? El Kabong HTML 23 05-13-2007 08:55 PM
Two Browsers work! Two browsers won't load. Internet game service won't load jimmie Computer Support 1 02-26-2006 08:36 AM
Controlling font size accurately across browsers Andy Dingley HTML 4 09-18-2005 09:26 PM
Bookmarks, favorites, across browsers.... dorayme HTML 4 03-17-2005 06:19 AM



Advertisments