homepage Welcome to WebmasterWorld Guest from 54.166.111.111
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Trigger a popup when a user clicks on the page
script33




msg:3675985
 3:07 pm on Jun 16, 2008 (gmt 0)

How we can insert a popup in our page that when a user click on the page (any where) so popup open !

Because today all browsers have popup blocker and any user don't see popups automaticaly !

So we must use this method !

Can you help me?

 

script33




msg:3675986
 3:08 pm on Jun 16, 2008 (gmt 0)

If its open in background tab so its very nice !

StoutFiles




msg:3675992
 3:13 pm on Jun 16, 2008 (gmt 0)

I'm kinda confused about what you're asking...you want a popup but you also acknowledge that most people have popup blockers.

piatkow




msg:3676596
 12:23 pm on Jun 17, 2008 (gmt 0)

If you just want a new window to open on a link then use the target attribute either through html or javascript.

I haven't come across a pop-up blocker so far that stops you opening a link in a new window.

rocknbil




msg:3676868
 5:48 pm on Jun 17, 2008 (gmt 0)

when a user click on the page (anywhere)

For starters, you could try

<body onClick="newWin();">

Where newWin() is a Javascript function that opens a new window. I don't know if this qualifies as "anywhere" so you might have to apply the same to your links. Add a generic unobtrusive function that applies to both body and all links.

Not a great idea for your end users, but if you must, you must.

poppyrich




msg:3677921
 7:36 pm on Jun 18, 2008 (gmt 0)

@script33:

Are you looking for a pop-up that will work even if Pop-Up blocking is enabled?

If so you are looking for what is often called a DHTML popup.
It uses javascript to manipulate the DOM to produce a pop-up effect that can't be blocked.

I this what you're looking for?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved