| having trouble with the alert; javascript | |
|---|---|
| Tweet Topic Started: Jun 10 2009, 11:10 PM (440 Views) | |
| kryssy23 | Jun 10 2009, 11:10 PM Post #1 |
|
hey, i need to use javascript to open a link in a new window... that works... but i need to have an alert. once the link is clicked the alert should come up saying that you are leaving the site... then when you press 'ok' it should continue to the other website. i have tried doing this at least 3 different ways but none seem to work... i am just starting to learn javascript... so forgive me if its a very simple question.
thanks for the help
|
![]() |
|
| Knight13 | Jun 11 2009, 06:14 AM Post #2 |
|
0
Edited by Knight13, Mar 19 2010, 07:55 AM.
|
![]() |
|
| Darksorrow131 | Jun 11 2009, 06:34 PM Post #3 |
|
I think you also need a target="something" (I forgot what) on the <a> tag to open in new window. (btw I don't think you can have spaces around the equals sign in HTML attributes but I'm not sure about that) |
|
(let loop () (loop)) ((lambda (x) (x x)) (lambda (x) (x x))) (let ((k #f)) (call/cc (lambda (cc) (set! k cc)) (k)) ((call/cc call/cc) (call/cc call/cc)) -- Infinite loops are awesome! -- Tell me if you have other awesome infinite loops! | |
![]() |
|
| Knight13 | Jun 11 2009, 06:51 PM Post #4 |
|
0
Edited by Knight13, Mar 19 2010, 07:50 AM.
|
![]() |
|
| kryssy23 | Jun 12 2009, 11:20 AM Post #5 |
|
hey thanks for the reply... and yes that is what i wanted... in my code the popWin was actually a bit of javascript to open the link in a new window... teachers requirements :s anyways thanks guys for all your help
|
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Web-Based Programming Support · Next Topic » |






10:18 AM Jul 11