Open page in specific window

liunx

Guest
I have a page with a link which opens a new window. My question is, can I have a link from the new window which will tell Explorer to open a page in the ORIGINAL window?<br />
<br />
Can anyone tell me what code I would need to do this?<br />
<br />
Thanks very much.<!--content-->I'm not 100% sure, but I think you would have to do this with javascript or some other language. I would try the javascript forum.<!--content--><a href=http://www.webdeveloper.com/forum/archive/index.php/"page.html" target="myWindow">page</a><br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"pagetoopeninmyWindow.html" target="myWindow">page to open in myWindow</a><br />
<br />
<br />
[J]ona<!--content-->HI!!!!!!!!!!!<br />
I'm new here....<br />
and i have this problem on my blog....<br />
i want a link to open in a diferent window, because the it's hard to go back to my site....<br />
but the stuff on my template says <br />
<li><a href=http://www.webdeveloper.com/forum/archive/index.php/"something"><someting></a></li><br />
or something like that....<br />
sooooooooooo<br />
what in the world do i have to put so it will open in another window?????<!--content--><a href=http://www.webdeveloper.com/forum/archive/index.php/"whatever.html" target="_blank">Link</a><!--content-->Thanks Jona<br />
<br />
How do I name the original window something so that I can target it?<br />
<br />
Is it only possible to give a window a name if you open it yourself with Javascript? Or can I include something in the HTML of the original page?<br />
<br />
Otherwise I can't see how to target the original window, because this will just be whatever the user had open at the time?<!--content-->If you target a name, the window that opens from the link will be named just that, and can be targeted with the same name from other links. You can also use JavaScript as an alternative, and I would suggest you do if you are using an XHTML DTD.<br />
<br />
[J]ona<!--content-->I see what you mean, but the problem is, they could be coming to the original page from anywhere - ie. not necessarily from a link on my own site. <br />
<br />
So is there a way when I create the HTML for the original page, so that it names the window it loads in? Cos it won't be a 'new' window...it will just be the same window as whatever the last site they were on. <br />
<br />
Do you see what I mean?<!--content-->Um, you could try using a JavaScript function to determine the URL of the window and name it from the parent, but I don't think you have cross-server access from different windows...<br />
<br />
[J]ona<!--content--><a href=http://www.webdeveloper.com/forum/archive/index.php/"page.html" target="myWindow">page</a> <br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"pagetoopeninmyWindow.html" target="myWindow">page to open in myWindow</a> <br />
<br />
<br />
I tried to do the above. The link works fine and opens a new window when I preview it. However when the new window open it tells me that the page cannot be displayed? <br />
<br />
What is wrong?<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"friendthoughts.html" target="Thoughts on frindship">friendship</a><!--content-->Use underscores (_) instead of spaces.<br />
<br />
[J]ona<!--content-->would this help?<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"friendthoughts.html" target="Thoughts_on_frindship">friendship</a><!--content-->Thanks to both of you. I'll try the suggestions in my HTMLKit where I design everything.<br />
<br />
I uploaded those files today and with the <target="_blank"> it worked fine on the live website...clicked on the link and it opened up the correct file in a new window...a BIG window...I thought it would be a smaller sized one! Can I reduce the size of the window through HTML?<!--content-->Originally posted by FuzzDuckie <br />
Can I reduce the size of the window through HTML? <br />
<br />
No, you cannot. The new window will open to the "restored size" of the user's choice. This means that if you click the restore icon on the top-right section of your Internet Explorer browser, and resize the window, and close it, all windows opened thereafter (whether by HTML or by clicking the icon on your desktop) will be the same size.<br />
<br />
[J]ona<!--content-->you could use a JavaScript code to open in a window with a specified size?<!--content-->Originally posted by giggledesign <br />
you could use a JavaScript code to open in a window with a specified size? <br />
<br />
Yup. ;)<br />
<br />
[J]ona<!--content-->
 
Back
Top