home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

html code for opening a new constrained window

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1619
Discussions: 200,989, Posts: 2,379,862, Members: 246,356
Old March 14th, 2008, 01:54 PM   Digg it!   #1 (permalink)
Ultimate Member
 
thePh@r@oh's Avatar
 
Join Date: Jan 2003
Posts: 2,270
Send a message via AIM to thePh@r@oh
html code for opening a new constrained window

I am working in frontpage and I want a link to open a page in a new window. But i want the window to be constraind with certain dimensions no scrolling and no resizing. What's the code?
thePh@r@oh is offline   Reply With Quote
Old March 14th, 2008, 02:01 PM     #2 (permalink)
ska7ing away.....
 
doddsy's Avatar
 
Join Date: Nov 2003
Location: with the cat
Posts: 7,761
http://www.w3schools.com/htmldom/met_win_resizeto.asp

maybe?
doddsy is offline   Reply With Quote
Old March 14th, 2008, 02:09 PM     #3 (permalink)
Ultimate Member
 
thePh@r@oh's Avatar
 
Join Date: Jan 2003
Posts: 2,270
Send a message via AIM to thePh@r@oh
i want it to open up more like a popup add...thanks though
thePh@r@oh is offline   Reply With Quote
Old March 14th, 2008, 02:24 PM     #4 (permalink)
分かりますか。
 
carl33p's Avatar
 
Join Date: Feb 2006
Location: Gville, FL
Posts: 7,156
Blog Entries: 9
Send a message via AIM to carl33p
This should be what you are looking for.

Using basic HTML, it can be done, but is more of a hassle. And it only works in IE for me, not Opera or FF.
<BODY SCROLL=NO>
<A HREF="" target="_blank">
etc

Last edited by carl33p : March 14th, 2008 at 02:28 PM.
carl33p is offline   Reply With Quote
Old March 14th, 2008, 03:29 PM     #5 (permalink)
Ultimate Member
 
thePh@r@oh's Avatar
 
Join Date: Jan 2003
Posts: 2,270
Send a message via AIM to thePh@r@oh
I dont mind just html I think I may prefer it. The link is on an image map so I'm having trouble figureing out how to put the code in the link box.
thePh@r@oh is offline   Reply With Quote
Old March 14th, 2008, 04:42 PM     #6 (permalink)
Ultimate Member
 
thePh@r@oh's Avatar
 
Join Date: Jan 2003
Posts: 2,270
Send a message via AIM to thePh@r@oh
is it possible to set code on the page I'm linking to. rather than puting the code on the link?
thePh@r@oh is offline   Reply With Quote
Old March 14th, 2008, 05:16 PM     #7 (permalink)
分かりますか。
 
carl33p's Avatar
 
Join Date: Feb 2006
Location: Gville, FL
Posts: 7,156
Blog Entries: 9
Send a message via AIM to carl33p
This may be a good chance for you expand your knowledge. Hopefully you are somewhat familiar with javascript or basic programming. If not, its still pretty easy to grasp.

http://www.pageresource.com/jscript/jlinktut.htm

Quote:
<SCRIPT language="JavaScript">
<!--hide

function newwindow()
{
window.open('jex5.htm','jav','width=300,height=200,resizable=y es');
}
//-->
</SCRIPT>

Here you are making a function. Your function is called newwindow(). When you call newwindow() it will execute what is in between { }. Which is where you will replace everything I have in bold with your own material. Put this in the <head> section.


Then go to your image map. Use
Quote:
<A HREF="javascript:newwindow()" >

Word for word.

Easy as pie.
carl33p is offline   Reply With Quote
Old March 15th, 2008, 11:17 AM     #8 (permalink)
Ultimate Member
 
thePh@r@oh's Avatar
 
Join Date: Jan 2003
Posts: 2,270
Send a message via AIM to thePh@r@oh
Thats awesome it's like being in school for web design...thanks...Is there ways i can tweak it to put more than one link like that on a page?
thePh@r@oh is offline   Reply With Quote
Old March 15th, 2008, 05:19 PM     #9 (permalink)
Super F@D Folder
 
Join Date: Jun 2004
Posts: 5,083
Send a message via AIM to sr71000
look at how you create variables. then you can pass the name of the page as a variable to the function.
sr71000 is offline   Reply With Quote
Old March 15th, 2008, 07:05 PM     #10 (permalink)
分かりますか。
 
carl33p's Avatar
 
Join Date: Feb 2006
Location: Gville, FL
Posts: 7,156
Blog Entries: 9
Send a message via AIM to carl33p
Quote:
Originally Posted by thePh@r@oh View Post
Thats awesome it's like being in school for web design...thanks...Is there ways i can tweak it to put more than one link like that on a page?

Hmmmm, asking a question like that means you dont really understand what is going on here..

Start here and learn exactly what you are doing. They do a great job of explaining the basics.

Ask questions here. I dont do web design or use javascript, so Im happy to answer questions b/c that means I go look it up and learn something new.


Try to recognize what parts of the syntax are static and dont change, and what words you can name yourself. For example:

Quote:
<HEAD>
<TITLE>My World</TITLE>

<SCRIPT language="JavaScript">

function cool()
{
..........
}

function newtext()
{
.....
}
function moretext()
{
......
}

</SCRIPT>

</HEAD>

Everything thing in Blue, YOU can name yourself. Give em any name you want.


http://www.pageresource.com/jscript/index.html
carl33p is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is MAC OS capable of opening HTML files? tomcruise3230 Applications and Operating Systems 7 August 2nd, 2007 12:09 AM
Opening link in new window questions... ¥ KOMI ¥ Webmastering and Programming 1 June 7th, 2005 08:58 PM
Opening in a window GroundZero3 Webmastering and Programming 2 March 1st, 2004 01:40 AM
Problem Opening Window IE 6 - it hangs Jupiler Technical Support 9 May 6th, 2003 02:20 AM
HTML for opening a link in a new page? e980238 Webmastering and Programming 16 September 30th, 2002 04:38 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3065)
Charges against non-tippers dropped.. (20)
Health Care Rationing (11)
Delete an OS (17)
Nvidia GTX 260 problem (9)
Laptop with wireless problem. (12)
windows vista security holes (19)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Point and Shoot Camera Suggestions. (8)
windows 7 problem (7)
[F@H SPAM 11/16/09] ! 1/2 months to.. (39)
Internet Lost (5)
Recent Discussions
How to converter MTS Video to HD mpeg.. (0)
Can a page file be "too big".. (0)
Point and Shoot Camera Suggestions. (8)
Looking for new motherboard (0)
Size after cutting 700Mb file is 2.5 .. (0)
Delete an OS (17)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (39)
windows vista security holes (19)
updating BIOS via winflash, claims fi.. (1)
New Server Configuration Suggestions (0)
Desktop Calendar Application (0)
cheap gaming laptop? (12)
Unallocated Space (2)
help me pls laptop just stopped worki.. (1)
C# + LINQ Help (7)
Nvidia GTX 260 problem (9)
Dynex DX E-402 (3)
EVGA 9800 gtx help with finding a goo.. (12)
Multiple Restarts Required at Boot (5)
cell phone won't work (0)
Is the PSU I received dead? (15)
Can't open Word (12)
Steam ID's, Gamertags etc... (4)
Games, Cables, PCI cards, and more fo.. (6)
Dept. of HS: NSA 'Helped' Develop Vis.. (17)


All times are GMT -4. The time now is 06:13 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28