javascript alert

This is a discussion on "javascript alert" within the JavaScript Forum section. This forum, and the thread "javascript alert are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 7th, 2007, 00:48
New Member
Join Date: Jan 2007
Location: canada
Age: 31
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question javascript alert

is there away to make this code open a new page?
PHP: Select all

if (confirm("Do you want to go?")) window.location.href "http://www.google.com"
Reply With Quote

  #2 (permalink)  
Old Jan 7th, 2007, 02:02
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: javascript alert

Yeah, this should work:

Code: Select all
if(confirm("Do you want to go?")) {
    window.open("http://google.com");
}
Reply With Quote
Reply

Tags
javascript alert

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Alert Box acrikey JavaScript Forum 4 Mar 25th, 2008 23:23
alert Message messing up sdbdgwood JavaScript Forum 0 Feb 8th, 2008 16:15
Newbie alert..... pagey Introduce Yourself 11 Sep 2nd, 2006 08:55
One-time, IP based alert? krazykikikatt JavaScript Forum 3 Apr 5th, 2006 01:50
javascript alert message! Monie JavaScript Forum 7 Sep 29th, 2004 17:14


All times are GMT. The time now is 19:04.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43