Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a window in another page

Status
Not open for further replies.

ashz

Programmer
Dec 9, 2002
43
0
0
ES
href (<a href=&quot; is the regular way to open a windows is their a way to open a window in another page?
 
Sure if you have the handle of the other page, or if you want to open a new window. To open a new window:
Code:
window.open(&quot;[URL unfurl="true"]http://www.something.com&quot;,&quot;MyWindow&quot;);[/URL]
To open something in that window, use:
Code:
window.open(&quot;[URL unfurl="true"]http://www.something.com&quot;,target=&quot;MyWindow&quot;);[/URL]
 
What about...

<a href=&quot;link.htm&quot; target=&quot;_blank&quot;>link</a>
 
Hi,

Thanks for the help but since my href html link is limited I can not use the target option, Furthermore my knowledge in JavaScript is very minimal.

How can I use javascript below (Supra thread) in an html file and how can I disable the toolbars of the browser and limit the size of the new window.

Thanks a lot for the replies.

 
Try <A HREF=&quot;javascript:void(0)&quot; onClick=&quot;window.open(' 'Window new name', 'resizable=yes,height=500,width=600', false);&quot; >New window</A
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top