General Community > Scripting Help
javascript browsers
Valconeye:
im trying to figure out howto change a windows size etc, like this window.open<a href="javascript:void(window.open('http://www.mysite.com/blah/index.php','14','width=780,height=500,toolbar=no,statusbar=no'))">test </a>
except i want to be able to link to mysite.com/blah/index.php directly without typing the javascript so the page should do it automatically. (i know this is javascript, but i thought you peeps could help, i have gone everywhere else)
Aquilo:
like this?
--- Code: ---<html>
<head>
<script>
function OpenWindow(url)
{
var newWindow = window.open(url, 'window', 'width=780,height=500,toolbar=no,statusbar=no');
newWindow.opener = window;
}
</script>
</head>
<body OnLoad="OpenWindow('http://www.xtram.com')">
test
</body>
--- End code ---
and this will work too...
--- Code: ---<head>
<script>
function window.onload()
{
var url = 'http://www.xtram.com';
var newWindow = window.open(url, 'window', 'width=780,height=500,toolbar=no,statusbar=no');
newWindow.opener = window;
}
</script>
</head>
--- End code ---
Spaceman-Spiff:
to resize current window:
document.window.resizeTo(x, y);
dont remember if this works in IE only or not
[Unknown]:
I hate sites that resize my carefully sized windows...
-[Unknown]
Anguz:
--- Quote from: [Unknown] on September 01, 2003, 02:14:40 AM ---I hate sites that resize my carefully sized windows...
-[Unknown]
--- End quote ---
I agree
Navigation
[0] Message Index
[#] Next page
Go to full version