Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Making Pop-up windows?
Old 09-18-2006, 12:04 PM Making Pop-up windows?
herbal_ali's Avatar
Extreme Talker

Posts: 156
Location: London, UK
Trades: 0
Hello,

How can i create a link to a pop-up window of a webpage? Do i have to modify the link to do that or the page that's being linked?

Sorry if this isn't HTML.

Thank you
herbal_ali is offline
Reply With Quote
View Public Profile Visit herbal_ali's homepage!
 
 
Register now for full access!
Old 09-18-2006, 01:27 PM Re: Making Pop-up windows?
RickPlmr's Avatar
Super Talker

Posts: 107
Name: Rick Palmer
Trades: 0
Usually pop up windows are created from javascript within a web page, and so you'll need to go to the web page and find the javascript function that's creating the popup, and then duplicate it in javascript on your web page.
__________________

Please login or register to view this content. Registration is FREE
- free online training in Java, J2EE, and MySQL.


Please login or register to view this content. Registration is FREE
- answers and advice from a geek who knows stuff.
RickPlmr is offline
Reply With Quote
View Public Profile
 
Old 09-18-2006, 01:38 PM Re: Making Pop-up windows?
Defies a Status

Posts: 1,606
Trades: 0
Quote:
Originally Posted by herbal_ali View Post
Hello,

How can i create a link to a pop-up window of a webpage? Do i have to modify the link to do that or the page that's being linked?

Sorry if this isn't HTML.

Thank you
You don't need javascript to do it. It can be done that way but you can also do it with html. You modify the hyperlink but the page must be set up to fit within the size of the box you create or scrolling must be enabled

Here is an example , click on the contact link and see what happens.
This is the code that makes it happen. This example is within a php script. The pure html version is slightly different.

Quote:
<a href <?php echo($dir_root_path . "contact.php"); ?> onClick="window.open('./contact.php','Contact','scrollbars=yes,resizable=n o,width=550,height=600')" onMouseOver="style.textDecoration='underline'" onMouseOut="style.textDecoration='none'" >Contact Us</a>
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 09-18-2006, 02:47 PM Re: Making Pop-up windows?
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
If the link doesn't need to be a certain size or have any of the toolbars, scrolling, address bar, etc turned off, then you can just open the link by modifying the link's target. A target of _blank will open a new window each time:
Code:
<a href="http://www.google.com" target="_blank">Click</a>
Otherwise if you want scrolling turned off, address bar hidden, etc.. then you add the javascript:
Code:
<a href="http://www.google.com" target="_blank" onclick="window.open(this.href,'newWindowName','scrollbars=no,resizable=no,width=550,height=600');return false;">Click</a>
The JS code above will open a new window, even if the user has JS turned off.

Last edited by funkdaddu; 09-18-2006 at 02:48 PM..
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 09-18-2006, 04:03 PM Re: Making Pop-up windows?
Defies a Status

Posts: 1,606
Trades: 0
I did not realize that it was javascript since there was no script call in the <head> section. Guess I was using it afterall.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 09-18-2006, 04:47 PM Re: Making Pop-up windows?
Experienced Talker

Posts: 41
Name: Patrick Masciocchi
Location: California
Trades: 0
If you go to dynamic drive, they have lots of cool stuff that will help you out with this.

http://www.dynamicdrive.com

HTH
watchdoghosting is offline
Reply With Quote
View Public Profile Visit watchdoghosting's homepage!
 
Reply     « Reply to Making Pop-up windows?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 2.00770 seconds with 12 queries