![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have opened a new window and now want to change something in the newly opened window. I am doing this....... area href="javascript:tour('newwindow.htm','_blank','sc rollbars=yes,resizable=1,*width=780,height=550,top =0,left=0')" onclick="javascript:setTimeout('changenewone()', 800)" shape="rect" coords="9, 29, 44, 69" script type="text/javascript" src="id1.js" function changenewone() { window.location.newemail1.HideContent('id1'); /script I have named the new window "newemail1." I used a time delay hoping that the new window would have time to open and then the attributes could be accessed. I'm not targeting the new window correctly, I suppose. What would be the correct way to do this? I am getting an "object expected" error. Any help is appreciated. |
#3
| |||
| |||
|
|
On Jan 20, 10:15 am, Joe Sent Me <greend... (AT) jimlowe (DOT) net> wrote: I have opened a new window and now want to change something in the newly opened window. I am doing this....... area href="javascript:tour('newwindow.htm','_blank','sc rollbars=yes,resizable=1,*width=780,height=550,top =0,left=0')" onclick="javascript:setTimeout('changenewone()', 800)" shape="rect" coords="9, 29, 44, 69" [...] And with the onclick event, you don't need 'javascript:' |
|
How do you reference your new window after you created it? typically you would do something like: var someWin = window.open('newwindow.htm', blah, blah, ....) |
#4
| |||
| |||
|
|
It should be noted that window.open() universally supports three arguments at most.[1] *This is important because some people have got the idea that the comma-separated string value of the third argument constitutes more of them; they do not use the string delimiters and wonder what they did wrong.. [1] The MSHTML DOM supports four, with the fourth being a boolean value * * to determine whether the first parameter's URL reference should * * replace the history entry for that window or not, in case the window * * is reused.http://msdn2.microsoft.com/en-us/lib...1(VS.85)..aspx PointedEars -- |
#5
| |||
| |||
|
|
[...] Thomas 'PointedEars' Lahn [...] wrote: It should be noted that window.open() universally supports three arguments at most.[1] This is important because some people have got the idea that the comma-separated string value of the third argument constitutes more of them; they do not use the string delimiters and wonder what they did wrong. [1] The MSHTML DOM supports four, with the fourth being a boolean value to determine whether the first parameter's URL reference should replace the history entry for that window or not, in case the window is reused.http://msdn2.microsoft.com/en-us/lib...51(VS.85).aspx [...] And the third param is optional. |
![]() |
| Thread Tools | |
| Display Modes | |
| |