LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to make a pop up window form (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-make-a-pop-up-window-form-781977/)

abanksob1 01-13-2010 10:10 AM

how to make a pop up window form
 
hi i v been trying to make a pop up window or form for my user once they get to my index page then a form comes in the middle of the screen asking questions . also i want a pop up form to pop up when some one is trying to exit my page to pop up can some one please help me
http://moverscommunity.com
http://moverscommunity.com/movers_blog

MBybee 01-13-2010 10:27 AM

I'm sure you have a good reason to do that - it's generally kinda tacky.

Use the onLoad method to get it to show up immediately:
http://www.java-scripts.net/javascri...d-Pop-Up.phtml

Use the onUnload method to do the opposite:
http://www.javascript-coder.com/wind...dow-open.phtml

Just a word of advice though - people tend to hate that.

abanksob1 02-04-2010 06:39 AM

thanks for the replay how ever i was thinking
 
of something more elegant and better check out this site
http://www.hwsinet.com/ when you go to that site after a few seconds a page come up asking to donate and the back ground goes dark ...i need a pop up scrip like that can you please help me
shawn@moverscommunity.com

MBybee 02-04-2010 08:11 PM

Quote:

Originally Posted by abanksob1 (Post 3852196)
of something more elegant and better check out this site
http://www.hwsinet.com/ when you go to that site after a few seconds a page come up asking to donate and the back ground goes dark ...i need a pop up scrip like that can you please help me
shawn@moverscommunity.com

Wow, that's awful. Well you could try this tutorial:
http://www.youtube.com/watch?v=JXdkbhdmUMs

abanksob1 02-05-2010 08:10 AM

its not quite what i was looking for ...do you have any other suggestion?

MBybee 02-05-2010 09:24 AM

I'm not sure - it depends on what you didn't like about that :D

Basically, no matter what you do, you'll need to just hook into one of those document methods to call your javascript. I recommend you search the internet for 'pop up' 'javascript' and 'grey out' or something:
http://www.google.com/search?q=javas...ient=firefox-a

There are 128,000 hits. Hopefully one of them will do what you're looking for. If not, you may wish to hire a web programmer.


All times are GMT -5. The time now is 07:52 AM.