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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening a new full window from a pop up

Status
Not open for further replies.

LaPluma

Programmer
Feb 3, 2002
139
DE
Hello

I have a site which uses pop up windows. I can print the pop up window, but I wish to insert a couple of links into it which, when clicked, will open up a full window (the links lead to other full sites and are not mine).

Can I use JavaScript to do this?

Best wishes and thanks for any help.
 
HTML>
<HEAD>
<SCRIPT>
function fullWindow(url) {
var str = &quot;left=0,screenX=0,top=0,screenY=0,resizable&quot;;
if (window.screen) {
var ah = screen.availHeight - 30;
var aw = screen.availWidth - 10;
str += &quot;,height=&quot; + ah;
str += &quot;,innerHeight=&quot; + ah;
str += &quot;,width=&quot; + aw;
str += &quot;,innerWidth=&quot; + aw;
}
win=window.open(url, &quot;w&quot;, str);
}
</SCRIPT>
</HEAD>
<BODY>
<A HREF=javascript:void(0); onClick=fullWindow('</BODY>
</HTML> ---------------------------------------
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
Hello Neversleep

I hadn't managed to get off the Tek-Tips site and noticed that you had already replied to my question!!!!!! Thought I was seeing things!

Very many thanks for your post and your help.
I'll try it!
Best wishes
 
Hi,

I hope the following snippet will be useful for you:-

<HTML>
<HEAD>
<SCRIPT>
function fullScreen(url)
{
win=window.open(url, &quot;w&quot;, &quot;fullscreen=1&quot;);
}
</SCRIPT>
</HEAD>
<BODY>
<A HREF=javascript:void(0); onClick=fullScreen(' Screen</a>
</BODY>
</HTML>

best wishes,
mohan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top