 |
HTML Help Please Search for the answer to your question before asking it! Thanks.
|
| View previous topic :: View next topic |
| Author |
Message |
Mori
Joined: 20 Jul 2009
Posts: 21
|
| Posted: Thu Sep 24, 2009 4:01 am Link push Button |
|
|
Hi,
How can I create a link button clicking on which opens a new tab/window to a webpage? For example, when you click on the button (a push button) it opens the Google homepage in a new tab/window.
Thanks for any help!
Regards
Mori |
|
|
PayneLess Designs
Joined: 28 Feb 2007
Posts: 4287
Location: MS
|
| Posted: Thu Sep 24, 2009 7:37 am |
|
|
| Do you want a button link, text link or image link? You can try adding this to the link tag: Code: Open new window: onclick="window.open (this.href, ''); return false" |
|
|
Mori
Joined: 20 Jul 2009
Posts: 21
|
| Posted: Thu Sep 24, 2009 8:00 am |
|
|
| I wish to create a button, e.g. <button type="button">Click Me!</button>, so that when I click on it a new tab/window opens with my desired URL. |
|
|
PayneLess Designs
Joined: 28 Feb 2007
Posts: 4287
Location: MS
|
| Posted: Thu Sep 24, 2009 8:26 am |
|
|
Code: <form action="click">
<input type="button" value="Open Window" onclick="window.open('http://www.domain.com')">
</form>
If you need it to validate, put the input tag between block level tags like paragraph tags. |
|
|
Mori
Joined: 20 Jul 2009
Posts: 21
|
| Posted: Thu Sep 24, 2009 8:33 am |
|
|
Dear Ron,
You're just great! Thanks!!! |
|
|
PayneLess Designs
Joined: 28 Feb 2007
Posts: 4287
Location: MS
|
| Posted: Thu Sep 24, 2009 9:28 am |
|
|
| :lol: You're welcome and thank YOU! :P |
|
|
seamansilk
Joined: 02 Oct 2009
Posts: 5
|
| Posted: Fri Oct 02, 2009 4:50 am |
|
|
Can please you help out an old sailor
How can I direct the following code to open in a specific frame (target=6116)
Thanks
:( Steve
<form action="click">
<input type="button" value="Open Window" onclick="window.open('http://www.domain.com')">
</form> |
|
|
PayneLess Designs
Joined: 28 Feb 2007
Posts: 4287
Location: MS
|
| Posted: Fri Oct 02, 2009 6:44 pm |
|
|
seamansilk wrote: Can please you help out an old sailor
How can I direct the following code to open in a specific frame (target=6116)
Thanks
:( Steve
<form action="click">
<input type="button" value="Open Window" onclick="window.open('http://www.domain.com')">
</form> Think this question has been answered HERE. |
|
|
| |
|
|
|
Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group
|