User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 427,493 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,471 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 3435 | Replies: 2
Reply
Join Date: Jun 2006
Location: UK (Bristol)
Posts: 225
Reputation: Mushy-pea is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 1
Mushy-pea's Avatar
Mushy-pea Mushy-pea is offline Offline
Posting Whiz in Training

How to launch pop-up windows....

  #1  
Jul 24th, 2006
Hello everyone. I recently launched the website http://www.rochfest.co.uk to help promote Rochfest. Please check out the site if you get time.

What I wanted to ask is, is it possible to launch pop-up windows using javascript? If it is, how is this done? If this is not possible, do you know which kinds of scripts can be used to launch pop-ups? Thanks.

Steven.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,467
Reputation: peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough 
Rep Power: 11
Solved Threads: 296
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: How to launch pop-up windows....

  #2  
Jul 25th, 2006
Yes you can use JavaScript to launch pop-up window

The example below launch new window on click of highlighted text, it does work as classic "a href", the window is of specific size
[HTML]
<td>Soviet army, and four other "allies" invaded and
<FONT COLOR="BLUE" onClick="MM_openBrWindow('august.html','','width=700,height=500')">
occupied</Font> Czechoslovak territory</td>
[/HTML]

plus you have to embed this in <head> of html document

[HTML]
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features)
{
window.open(theURL,winName,features);
}
//-->
</script>
[/HTML]
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Join Date: Jun 2004
Location: Hemet, CA
Posts: 429
Reputation: FC Jamison is on a distinguished road 
Rep Power: 5
Solved Threads: 18
Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Solution Re: How to launch pop-up windows....

  #3  
Aug 3rd, 2006
Use this code for each link you want to pop up in a new window:

<a href="javascript: window.open('test2.html',null, 'height=200,width=400,status=yes,toolbar=no,menubar=no,location=no'); self.close();">test</a>
Last edited by FC Jamison : Aug 3rd, 2006 at 9:10 am.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 7:01 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC