pop ups

I want to a small web page that pops up when clicked on a link. The page will only have a 1 paragraph description and possibly a small picture also.

How can i do such a page, i don,t want a full page it will be too much of a waste.

Thanks

TAZ
 

DavidHorn

Free Member
Jan 3, 2006
289
30
52
Northern Ireland
This link demonstrates a good example of creating a pop up window that doesn't rely on the javascript pseudo-protocol. Using this method you can still right click on the link to open in a new window, bookmark it, drag it to the desktop, save to favourites, etc. - it's a much more accessible method of creating pop up windows:

(originally from http://youngpup.net/2003/popups)

<a href="http://google.com/" onclick="window.open(this.href, 'popupwindow', 'width=400,height=300,scrollbars,resizable'); return false;"
>
a link that functions as a link, but opens in a new window.
</a>
 
Upvote 0
Actually I was having a blonde moment and should have actually thought about the pop up blockers. I am trying to give a 1 paragraph description to a title when the title is clicked or rolled over. I don't want it on the main page because there are over 12 titles and it will take up too much room if i have that many full paragraphs on 1 page.

Any ideas please?

TAZ
 
Upvote 0

mattk

Free Member
Dec 5, 2005
2,579
974
50
Swindon
DavidHorn said:
This link demonstrates a good example of creating a pop up window that doesn't rely on the javascript pseudo-protocol. Using this method you can still right click on the link to open in a new window, bookmark it, drag it to the desktop, save to favourites, etc. - it's a much more accessible method of creating pop up windows:

(originally from http://youngpup.net/2003/popups)

<a href="http://google.com/" onclick="window.open(this.href, 'popupwindow', 'width=400,height=300,scrollbars,resizable'); return false;"
>
a link that functions as a link, but opens in a new window.
</a>
Isn't that exactly the code I posted 2 posts above?
 
Upvote 0
C

Coding Monkey

It doesn't have the onclick="JavaScript:" bit. Basically

Also, I use Safari with a pop-up blocker, but if the user actually clicks on the link, it's allowed, because otherwise websites that open in new windows etc just wouldn't work.
 
Upvote 0

mattk

Free Member
Dec 5, 2005
2,579
974
50
Swindon
I think you'll find that pop-op blockers don't mind window.open that is fired from an onClick. It only tends to block pop-ups that are fired from OnLoad, OnUnload and other events that are used in an underhand method!

Taz - given the above, I think you're pop up should be fine.
 
Upvote 0
C

Coding Monkey

Then you can have your links and branding included in the new window so that Google doesn't treat it as a "dangling" link

Although, many spiders can't read JavaScript, and there are more elegant methods of doing what you want
 
Upvote 0

Optegris

Free Member
  • Business Listing
    mattk said:
    openmind said:
    That's my point. If you're gonna have links and branding within the popup you may as well have a new page...

    Back to square one... ;)
    Can you kindly offer us a simple solution that a layman can apply to his site then - or are you simply offering up problems in an attempt in win some work?

    Jeez, where did that come from???

    If I was just causing problems in order to get some work I'd I've contacted him directly!!! Can I not disagree with a point without being accused of being difficult?

    To answer your question, it's quite simple if you think about it. Simply increase the amount of content so that the page doesn't look so barren. Content is king and if it something so minor that doesn't require a whole page then embed it into an existing page or use an image...

    And please don't go throwing your toys about just because someone disagrees with you...
     
    Upvote 0

    DavidHorn

    Free Member
    Jan 3, 2006
    289
    30
    52
    Northern Ireland
    Matt -

    The solution I posted is similar to yours but markedly different in its function.

    Mainly, it doesn't rely on the javascript pseudo protocol - so the link doesn't have 'javascript:' in it ... also, the information for the link is contained where it should be (between <a> and </a>) and not within the javascript.

    Because that example I gave behaves exactly like a link, it will not be blocked by any pop up blocker.

    Plus, it's a simple solution anyone can add to any of their links.

    David
     
    Upvote 0

    Srivvy

    Free Member
    May 24, 2005
    118
    4
    UK
    Hello Tazuk

    From the point of view of getting people to visit your site, Openmind was offering very good advice.

    Assuming your website has more than one page, there should always be a place for information on a normal page, rather than a pop up.

    There will then be more chance of people finding you through an increase in relevant text on your site. There is rarely much benefit to favouring pop ups.
     
    Upvote 0

    Latest Articles

    Join UK Business Forums for free business advice