make hyperlink open in maximised window

G

Guest

Please can you help?
I have a hyperlink that opens when clicking on the word "here" on a web
page. I want the hyperlink to open in a maximised window. How is this done?
 
T

Tom [Pepper] Willett

If you are talking about a new window, you can download and install the free
FP addin "Spawn" from www.jimcosoftware.com which lets you control the size.
--
===
Tom [Pepper] Willett
Microsoft MVP - FrontPage
---
FrontPage Support:
http://www.frontpagemvps.com/
About FrontPage 2003:
http://office.microsoft.com/home/office.aspx?assetid=FX01085802
===
| Please can you help?
| I have a hyperlink that opens when clicking on the word "here" on a web
| page. I want the hyperlink to open in a maximised window. How is this
done?
|
 
T

Trevor L.

joestripp said:
I am not permitted to install add-ons. Can't I just modify the code?

This is the JS function (with apologies to Jim as it is modified slightly to
allow x and y centering spearately)
function spawnJimcoPopup(url, name, options, h, w, x, y, scaleType)
{
if (scaleType == 'percent')
{ h = (h * screen.availHeight) / 100
w = (w * screen.availWidth) / 100 }
if (x == 'center') x = (screen.availWidth - w) / 2
if (y == 'center') y = (screen.availHeight - h) / 2
options += ',width=' + w + ',height=' + h
+ ',left=' + x + ',top=' + y
var newWindow = window.open(url, name, options)
newWindow.focus()
}

Just call it by spawnJimcoPopup('your.domain.com', '_blank', , '50',
'50','center','center', 'percent')
and you will open 'your.domain.com' in a new window which occupies 50% of
the height and width and is centred.
 
C

Charles Ezzell \(MSFT\)

I use this script in my web pages when I want the page to load maximized.

<script language="JavaScript1.2">
<!--
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if
(top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>

--
HTH,
Charles Ezzell
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
 
G

Guest

Charles,
How can I make the new window that opens when clicking on the hyperlink
maximise?
Your solution doesn't seem to help with this.
 
T

Thomas A. Rowe

I think in the long term you will find that visitors to your site, will not return if you force
their browser to open full screen.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
G

Guest

The page is for online training and the window needs to be maximised. I just
want to save people from having to click the maximise button.
 
T

Thomas A. Rowe

You would have to use JavaScript to grab the screen resolution and then open the JavaScript popup
window to that size.

In your IE address bar, type:

? JavaScript Windows Size Script

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
C

Charles Ezzell \(MSFT\)

Try again, like this in the page you want opened maximized:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>Opens Maximized</title>
<style type="text/css">
..style1 {
text-align: center;
}
</style>
</head>

<script language="JavaScript1.2">
<!--
top.window.moveTo(0,0);
if (document.all)
{
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById)
{
if
(top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth)
{
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>
<body>

<p class="style1">Opens Maximized.</p>

</body>

</html>


--
HTH,
Charles Ezzell
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top