submit target new
Moderator: General Moderators
submit target new
Hi
when we click a button ( input of submit type) we are redirected to the action page in the same window by default
What code is used and where should we use that code to open the action page in a new window?
when we click a button ( input of submit type) we are redirected to the action page in the same window by default
What code is used and where should we use that code to open the action page in a new window?
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
JOKING: Also, there is always a pop-up blockerJellyFish wrote:There's always the JavaScript way!
Almost every pop-up blocker blocks pop-ups when there are no user's click (or some other required user's action). But *almost* ... some blockers wouldn't be so kind
While using target _blank I have had no problems.
There are 10 types of people in this world, those who understand binary and those who don't
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
...
I mean:
I mean:
Code: Select all
var E;
try
{
window.open( ............. );
}
catch (E)
{
alert("You have a popup blocker!");
}
There are 10 types of people in this world, those who understand binary and those who don't
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact: