d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Notepad++ In Html
Add Reply New Topic New Poll
Member
Posts: 40,753
Joined: Sep 2 2008
Gold: 0.00
May 24 2013 04:23am
So I just made a button to link out my page towards Google Mail
This is what it looks like
<form action="https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=false&continue=https://mail.google.com/mail/?hl%3Dsv&ss=1&scc=1&ltmpl=default&ltmplcache=2&hl=sv">
<input type="submit""value="Google Mail">
</form>

Now if I would want it to open in a new tab how am I able to do that?

Thanks guys
Member
Posts: 1,628
Joined: Aug 11 2012
Gold: 628.00
May 24 2013 07:27am
wait what are you doing? form actions are where the form is submitted to. you dont want to put it there.

just to an a tag

Code

<a href="https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=false&continue=https://mail.google.com/mail/?hl%3Dsv&ss=1&scc=1&ltmpl=default&ltmplcache=2&hl=sv" target="_blank">Google Mail</a>



the
Code

target="_blank"

is what opens it in a new window
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll