Submit Your Article Forum Rules

Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Pop Up Window

  1. #1

    Pop Up Window

    Can a small pop up window have a link to another pop up window? I can't seem to get it to work. Please help!
    Audrey Paulus
    Web Developer
    www.hrosystems.com

  2. #2
    Senior Member httpman's Avatar
    Join Date
    Aug 2003
    Posts
    121
    Of course yes, but I don't fully understand what you want to do ?

    To open a popup window, you have to use a JavaScript line. Just put it on a link in your 1st popup, and you will open a new popup.

    Just one remark : when JavaScript opens a popup windows, it gives it a name. If you open a new popup with that same name, il will open the URL in the previous popup. Check that name !..

    Here is the JavaScript code :


    window.open(URL,Name,features);

    where :
    * URl is the page URL
    * Name is that damned popup name
    * features is an optional string specifying many parameters : is there a scrollbar, do it display menus, what is the pop up size, is it resizable, & so on...


    If you want your popup to *automatically* open a new popup, that's very easy to do too. Just use the "onload" event.

    Ok, if that's not the right answer, please give us more information..


    JP
    www.net-createurs.com [ french only website sorry ! ]

  3. #3

    pop up

    Thanks so much...I think that is the reason why it didn't work cuz it had the same name. In my products page, I want a pop up for the product's specifications but the information doesn't fit in the size window I want so I have to create another pop up for the additional specs. I will try it now....thanks
    Audrey Paulus
    Web Developer
    www.hrosystems.com

  4. #4
    Senior Member httpman's Avatar
    Join Date
    Aug 2003
    Posts
    121
    I'm pleased if it could help.
    If not, just tell why and the solution should come on. Unfortunately, there's no magic in the web (not yet) !!

    As I can't sleep yet - it's only 1.30 A.M here in France - I checked you website. Really fine. PageRank = 5, nice images, nice logo, nice texts : you're on top.

    Just one thing that hurts me : that (ugly) menu bar !
    This is what I think could kill your visitors !..
    Really, I've made a few dozen websites, and this website one is 100% what a good website should be --- excepted that incredible menu bar, which is sometimes on top of pages, and sometimes both on top and bottom. Should you spend a few bucks on that site, change that !!

    Jp
    www.net-createurs.com [ french only website sorry ! ]

  5. #5

    pop up

    It worked JP! Thanks! Another question... I am using the code:

    <a href="javascript:void(0);" onClick="javascript:window.open('secfeat.html','pr oductview','width=472,height=472')" title="Features &amp; Benefits">

    Can I replace the "javascript:void(0);" with the name of the current file? I don't like how it says javascript void in the scroll bar; it sounds so negative like it is an error or something.
    Audrey Paulus
    Web Developer
    www.hrosystems.com

  6. #6
    Senior Member httpman's Avatar
    Join Date
    Aug 2003
    Posts
    121
    No, you can't do that.
    As long as you want to open a new popup window, the "href" link is useless. It just works when you want to open a new page in the same window.

    Regarding popups, the usual way to use this HREF parameter is to put href="#" (means : target = same page as the current one). This will not make a clear status bar message, but it's better than void(xx). Void(xx) is coming from the C++ world, but it's useless in our web world. It just means "return anything, it is meaningless anyway". So why to return something ? Just a C++ developper's fantasy !

    I don't kown your knowledge around JavaScript.
    Could I give you my own feedback as an "old" (5 years old) website designer, I often use this <a> link with an "onclick" event.

    To use it, you just have to understand that before jumping to the URL as told in the href="xxx" parameter, javascript will look to the "onclick" event, and if it returns a "false" argument then the browser will not jump to the target page.

    Where can it be usefull ? Whithin forms !... Check the e-mail adress syntax, and if it doesn' look OK return a "false" value -- and the link will not work. Great !

    Jean-Pierre
    www.net-createurs.com [ french only website sorry ! ]

  7. #7

    java

    JP

    I don't have too much experience with Javascript. I did what you said and replaced the javascript void wording with your "#", and it didn't open up the page I wanted but had an error message. What did I do wrong?
    Audrey Paulus
    Web Developer
    www.hrosystems.com

  8. #8
    Senior Member httpman's Avatar
    Join Date
    Aug 2003
    Posts
    121
    OK, give me the URL of your page and I'll be pleased to take a look and tell you the reason why.

    But allow me some time : it's 2h30 A.M here in France, and I have to go to sleep (got to wake up at 6h00, that's very few to sleep) !!

    JP
    www.net-createurs.com [ french only website sorry ! ]

  9. #9

    pop up

    Okay, here's the url for the first pop up and the link on the bottom of that page is the other pop up...can you look at the code and tell me what it should be? Thanks Jean Pierre
    Audrey Paulus
    Web Developer
    www.hrosystems.com

  10. #10
    oops...forgot to include it above.

    http://www.hrosystems.com/text/secspec.html
    Audrey Paulus
    Web Developer
    www.hrosystems.com

Page 1 of 2 12 LastLast

Similar Threads

  1. New Window or New Tab?
    By jtracking in forum Accessibility and Usability Forum
    Replies: 8
    Last Post: 01-26-2007, 05:49 AM
  2. Logo in URL window
    By pspot in forum Graphics & Design Discussion Forum
    Replies: 2
    Last Post: 12-02-2004, 05:56 PM
  3. Window Positiions
    By flyer296 in forum Marketing Strategies Discussion Forum
    Replies: 0
    Last Post: 10-07-2004, 04:11 PM
  4. Adsense New Window
    By coder in forum Google AdWords/Google AdSense
    Replies: 1
    Last Post: 09-27-2004, 09:50 AM
  5. Pop Up window no margins
    By MasterT in forum Graphics & Design Discussion Forum
    Replies: 0
    Last Post: 02-24-2004, 01:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •