SageFix. LetsFix!  
Current Location : Home > Web Development > JavaScript > Popup Window Function > Post Share/Save/Bookmark    

Main Menu
SageFix - Let's Fix

Board Categories
    Web Site Designing
- Graphics
    Web Development
- .NET
- Classic ASP
- JavaScript
- PHP
    WebSite Management
- Promotion Techniques
- Search Engine Optimization
    Databases
- MySQL

Tutorials

Database Connection Strings

  Contact Us


Popup Window Function      Jul 28, 2002, 01:24 990389
  
JustForWebmasters, make all the large book images the same size, so that you won't have to change the window size on each link. Then, just do this:

Put this code into your external scripts file:
Code:
function open_new_win(url) {    window.open(url,'book_lg_view','width=400,height=400'); }
Link your external scripts file into the page like beetle said, using:
Code:
<script type="text/javascript" src="whatever.js"></script>
Call the function via a link like this:
Code:
<a href="http://www.google.com" onclick="open_new_win('http://www.google.com'); return false;">Google!</a>

 









Subscribe to our mailing list
email


Current Location : Home > Web Development > JavaScript > Popup Window Function > Post Share/Save/Bookmark    

Development problem? SageFix is completely free -- paid for by advertisers and donations. Click here to Contact Us If you have any query. Enjoy!
Request processed in 7.0E-5 seconds Home - Contact Us - Terms Of Service - Privacy Policy - Copyrights - Top
Advertisements do not imply our endorsement of that product or service.
Current server time now is 06-Sep-2010 07:04:33
Copyright © 2009 Sagefix Inc. All rights reserved.
Powered By SageFix