Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
Share
LinkBack Thread Tools
Old 09-12-2012, 09:50 PM   #1
Advanced Warrior
War Room Member
 
vjboc's Avatar
 
Join Date: Oct 2011
Location: Florida, U.S.A
Posts: 536
Thanks: 75
Thanked 41 Times in 32 Posts
Social Networking View Member's Twitter Profile 
Default Meta redirect to open in new window

Is there a way to auto redirect a link in new window. Either meta refresh or java. What is the html ? Thanks in advance.

Webmaster for AllProductsAndOffers.com
vjboc is offline   Reply With Quote
Old 09-12-2012, 10:17 PM   #2
Warrior Member
War Room Member
 
Join Date: Sep 2012
Posts: 11
Thanks: 0
Thanked 2 Times in 2 Posts
Default Re: Meta redirect to open in new window

Hi ... Simple Javascript

PHP Code:
<script type="text/javascript">window.open('http://google.com');</script> 
I think you may have some issue with popup blocking by most browsers.
Charles Profit is offline   Reply With Quote
Old 09-13-2012, 08:42 PM   #3
Advanced Warrior
War Room Member
 
vjboc's Avatar
 
Join Date: Oct 2011
Location: Florida, U.S.A
Posts: 536
Thanks: 75
Thanked 41 Times in 32 Posts
Social Networking View Member's Twitter Profile 
Default Re: Meta redirect to open in new window

Quote:
Originally Posted by Charles Profit View Post
Hi ... Simple Javascript

PHP Code:
<script type="text/javascript">window.open('http://google.com');</script> 
I think you may have some issue with popup blocking by most browsers.
Thanks Charles. Is there any javascript code that need to be added to make this code work?

Webmaster for AllProductsAndOffers.com
vjboc is offline   Reply With Quote
Old 09-14-2012, 12:28 AM   #4
HyperActive Warrior
 
andy789's Avatar
 
Join Date: Aug 2011
Location: USA
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Meta redirect to open in new window

bad idea ... new browser will automatically block it.

andy789 is offline   Reply With Quote
Old 09-14-2012, 12:42 AM   #5
Warrior Member
War Room Member
 
Join Date: Sep 2012
Posts: 11
Thanks: 0
Thanked 2 Times in 2 Posts
Default Re: Meta redirect to open in new window

Quote:
Originally Posted by vjboc View Post
Thanks Charles. Is there any javascript code that need to be added to make this code work?
Sorry - that is the Javascript (not phpcode --- I used the wrong bbcode). It will work on an html page as well as a php page.

But as I mentioned earlier, and as andy789 said, new browsers will block the popup.
Charles Profit is offline   Reply With Quote
Old 09-14-2012, 04:45 AM   #6
Advanced Warrior
War Room Member
 
vjboc's Avatar
 
Join Date: Oct 2011
Location: Florida, U.S.A
Posts: 536
Thanks: 75
Thanked 41 Times in 32 Posts
Social Networking View Member's Twitter Profile 
Default Re: Meta redirect to open in new window

Is there a meta redirect that lets you redirect to more than one url?

Webmaster for AllProductsAndOffers.com
vjboc is offline   Reply With Quote
Old 09-29-2012, 05:55 PM   #7
Warrior Member
 
Join Date: Sep 2012
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Default Re: Meta redirect to open in new window

Quote:
Originally Posted by vjboc View Post
Is there a meta redirect that lets you redirect to more than one url?
No, impossible !
mesmsgs is offline   Reply With Quote
Old 10-29-2012, 01:21 PM   #8
Warrior Member
 
Join Date: Oct 2012
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow Re: Meta redirect to open in new window

<meta http-equiv="refresh" content="0;url=NEW PAGE URL" />

Example: <meta http-equiv="refresh" content="0;url=java-demos.blogspot.com" />
gowthamgutha is offline   Reply With Quote
Old 10-29-2012, 01:22 PM   #9
Warrior Member
 
Join Date: Oct 2012
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb Re: Meta redirect to open in new window

In Java if using Servlets,

response.sendRedirect("url");

Example: response.sendRedirect("java-demos.blogspot.com");

Don't forget the protocol
gowthamgutha is offline   Reply With Quote
Old 10-29-2012, 10:11 PM   #10
Warrior Member
 
Join Date: Oct 2012
Posts: 20
Thanks: 0
Thanked 1 Time in 1 Post
Default Re: Meta redirect to open in new window

Use the following hybrid :

<meta http-equiv="refresh" content="5; URL=javascript:window.open('URL to redirect','_parent');">
ashok999333 is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Bookmarks

Tags
meta, open, redirect, window

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 Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 06:57 PM.