•
•
•
•
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
![]() |
•
•
Join Date: Jun 2006
Location: UK (Bristol)
Posts: 225
Reputation:
Rep Power: 3
Solved Threads: 1
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.
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.
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,467
Reputation:
Rep Power: 11
Solved Threads: 296
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]
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.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
ajax apple asp browser cd choose command computer console crack debian defender dell development download drm explorer fiji home install internet leopard linux microsoft mobile news office open operating os photo prompt security server software source spyware sql survey system tiger ubuntu unix upgrade vista web windows windows update windows vista xp
- Pop-Up Windows Security Center (Viruses, Spyware and other Nasties)
- IE opens with pop-up windows automatically after rebooting (Viruses, Spyware and other Nasties)
- "Are pop-up windows dead, are there alternative methods? (Site Layout and Usability)
- Pop-up windows (Viruses, Spyware and other Nasties)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: vertical alignment question
- Next Thread: Conflicting javascript slideshows on same page



Linear Mode