English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm looking for a way for someone to click a link and a pop up to open. For example have trivia and for the person to click an answer link pops up in a little box. That kind of thing.

2007-03-30 05:56:31 · 3 answers · asked by black_lightning 3 in Computers & Internet Programming & Design

3 answers

I think you are looking for the Javascript function alert()

For example,


will cause a small pop up alert to appear.

2007-03-30 06:04:16 · answer #1 · answered by bjnksp 2 · 0 0

If your answer is sort of small, then a "title" attribute may serve: when the viewer passes the mouse over the item, most browsers will pop up a small window containing the title text.

2007-03-30 14:37:36 · answer #2 · answered by fjpoblam 7 · 0 0

Yes... you can use window.open() method to pop up a window. A good approach is to create a javaScript function that is called when the link is cliked, inside the function you can call window.open (window.open takes a lot of parameters that define, the attributes of the pop up window, e.g. size, addressbar, resizable, etc). Google window.open to see the arguments/parameters that this method accepts.

Caution - a window.open may be blocked if the user has a pop up blocker.

~

2007-03-30 13:00:44 · answer #3 · answered by SmartSpider 4 · 1 0

fedest.com, questions and answers