Help - Search - Members - Calendar
Full Version: Target pages
Weborum Webmaster Forum > Web Page Design > PHP
circular
Hello

Can someone tell me how to make a target page a particular size? If I set my A href to target="_blank", as expected you get a new window with the subject matter. What I would like to do is to dictate the size of that window in html. They appear the same size as the main window (minimized) but there must be some way to do it like say, the calculator in Windows.

Any help from anyone there please?
unsure.gif
leo
are you looking for something like this in javascript?

http://forum.weborum.com/index.php?showtopic=101 smile.gif
circular
Hello

I have done as suggested, and uploaded it but it doesn't work.
Perhaps my error is in how I have written the request:
<a
href="javascript:popUp('http://www.romseyareainfo.net/images2/icondiagram.jpg')"

>Disability Icons</a>

I have put the Javascript in between the <head> </head> but not yet changed the size to fit my image.
Only tried it on one page of my website but it has to go on many!
Address: http://www.romseyareainfo.net/accountant.htm

The pop up is a diagram of disability icons from the link in the navigation column.
thanks
leo
hey circular smile.gif

it was a problem with the forum displaying one of the symbols in ascii format, with the changover i suppose, i'e fixed it now, replace the head code with this now:

HTML
<script type="text/javascript">

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=534,height=400');");
}
// End -->
</script>
leo
baah, i just can't get that damned ascii to stop replacing stuff!!!!, whatever quote/code i use, here circular i'm going to attach the code you need to replace
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.