Important alert: (current site time 7/15/2013 1:29:41 PM EDT)
 

VB icon

_ Open child window without toolbars, menues, buttons ...or all of them....you decide _

Email
Submitted on: 12/6/2000 11:58:51 AM
By: paul_cormie 
Level: Intermediate
User Rating: By 7 Users
Compatibility: JavaScript
Views: 52958
(About the author)
 
     
Check this out!
  • This code is not only REALLY simple, but has a lot of potential!
  • Fully commented, and easy for you to customize.
  • You probably have seen this function before, but it doesnt get any easier than this. Simply change the URL, and size, and your off!.
  • It's like and 'a href', so you can put the script anywhere you put one.

Simple, yet effective....LOTS more to come.



Click on any of the sample URLs




 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
				
'**************************************
' Name: _ Open child window without toolbars, menues, buttons ...or all of them....you decide _
' Description:<br><b>Check this out!</b><br><ul>
 <li><font face="Arial, Helvetica, sans-serif" size="2">This code is not only 
 REALLY simple, but has a lot of potential!</font></li>
 <li>Fully commented, and 
 easy for you to customize.</li>
 <li>You probably have seen 
 this function before, but it doesnt get any easier than this. Simply change 
 the URL, and size, and your off!.</li>
 <li>It's like and 'a href', 
 so you can put the script anywhere you put one.</li>
</ul>
<p>Simple, yet effective....LOTS 
 more to come.</p><br><br> <CHECK OUT EXAMPLE</b> <a href="http://www.paul_cormie.homestead.com" target="_blank">Click on any of the sample URLs</a></font><br><br><br>
' By: paul_cormie
'
' Inputs:All you need is to input your URL, and change the size of the popup window
'
' Returns:a child window with full control of the options of it. For example no menu, no scrollbar..etc
'
' Assumes:all the code is here...even the HTML, so its as easy as cut and paste.
'
'This code is copyrighted and has' limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=2014&lngWId=14'for details.'**************************************

<html>
<head>
<title>Using JavaScript to open a child window</title>
</head>
<script>
<!-- JavaScript Start -
function openWin( windowURL, windowName, windowFeatures ) {
 return window.open( windowURL, windowName, windowFeatures ) ;
}
JavaScript End -->
</script>
<body>
<!--It's just like a regular 'href', but calls the script to open the new window.
If you also really want to go crazy, you could diable the right click....search for "a right click disabler" -->
<a href="javascript: newwindow = openWin( 'http://www.miata.net/garage/tirecalc.html', 'Title', 'width=450,height=550,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0' ); newwindow.focus()">Click here for a child window to open using JavaScript!</a>
<!--anything you can do with a 'href' you can do with this. lots of potential! -->
</body>
</html>


Other 7 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

4/1/2001 1:53:52 PMangelduran@zdnetonebox.com

Would you be kind enough to put after a
code, a demonstration?
(If this comment was disrespectful, please report it.)

 
9/15/2001 1:13:43 PMTr1pX

Would be nice to know how to set it up or it just doesn't work in IE6.0. Everyone go to http://go.to/tr1px
(If this comment was disrespectful, please report it.)

 
6/10/2002 12:59:33 PMJim Rodgers

I had problems with this code too, but did get it fixed, to make things easier; here's all you need (modify it to your requirements). href=
(If this comment was disrespectful, please
report it.)
 
6/10/2002 1:01:10 PMJim Rodgers

Looks like my paste didn't work here and it got stripped, so e-mail me and I'll send you the code that works just fine and is far less confusing.

Jim (dot) Rodgers at zf (dot) com
jim.rodgers@zf.com

(If this comment was disrespectful, please report it.)

 
8/15/2002 8:16:35 AMCooLAX

I use this site er... cos iz a project i did not upload it to the web so I keep it in a folder and view it but when i click on the link to open the popup it does not work??? but it open the popup with and error??? y izzit??? then i try to use the path+the.html it works but I need to move the html to other folder I cant always change the path rite iz there a way i can move the html to other folder without changing the path???
(If this comment was disrespectful, please report it.)

 
1/10/2003 1:15:28 AM

This source code interesting, and I like planet source code
(If this comment was disrespectful, please report it.)

 
3/24/2003 6:30:00 AM

its so bad code.not good
(If this comment was disrespectful, please report it.)

 
3/1/2005 4:07:58 AM

gudone!!
(If this comment was disrespectful, please report it.)

 
3/11/2005 3:01:43 AM

How to add a News scroller java script to a dreamweaver html page? When I inserted the java script to the page, & when I'm browsing it, it's not fixing to the table properly. When I'm browsing it in a maximize window, it get fixed to the table which I have inserted it. But when it opens in a restore window, the news scroller moves to some where else.
Could u pls help me to do this. VERY URGENT...!!!
(If this comment was disrespectful, please report it.)

 
10/17/2007 12:17:59 AMleang phanet

hi my name phnaet i study at cambodia
(If this comment was disrespectful, please report it.)

 
1/9/2009 4:33:09 AMcode proj

java
(If this comment was disrespectful, please report it.)

 
3/6/2010 3:17:15 AMsatya

hiii
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.