I have a link that I want to open in a new tab. As it is in a <div> I am unsure how to do this - I am new to php coding [closed] - html

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 8 years ago.
Improve this question
This is the code I currently have, that opens the link in the same page. I want to modify this to make it open in a new tab.
<div class="big-button" ">
<input type="submit" value="Link name" />
</div>

Use target="_blank" in your anchor

Use this :
<div class="big-button" ">
<input type="submit" value="Link name" />
</div>

I think you need this
<a href='URL' target='_blank'>xyz</a>
Give the your url as href attribute and give target attribute as _blank. It will open in new window

<input type="button" value="Click Me!" onclick="window.open('http://google.com')" />

Hint:
target="_blank" is not validate W3C.
Use this code in a tag:
onclick="window.open(this.href); return false;"

Related

is there any alternated method for anchor tag?(Deleted) [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
This is my sample html page where i'm using anchor tag inside but i need any alternate method instead of anchor tag,could anybody tell me.
<body>
<table><tr><td>
<a href="http://www.w3schools.com">Visit W3Schools.com!
<div></div>
</a>
</td></tr>
</table>
</body>
Thanks for your help.
Maybe you could use:
<form method="GET" action="foo.html">
<input type="submit" />
</form>
The difference between those two methods: <form method="link" > or <a>? What's the difference?

Extremelly Quick Start in HTML [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I want to make a HTML page with two components on it: Button and Edit. If I press on button then OpenDialogFile executes. After choosing a file, I want to see it's full path (f.e. "C:/temp_folder/superText.txt") inside my Edit.
<body>
<h1>FileCreator Page!</h1>
<form action="createCSV" method="get">
<input type="text" name="fileName" value="D:/">
<input type="file" value="Choose CSV" title="Choose"> <!-- title is not working-->
<input type="submit" value="Load file into DB">
</form>
<body>
Due to security reasons you can not set a value for an input type file tag.
Look at this thread for further information to this topic: set value for input type file
Also there is no attribute called "title", the text shown on the button is predifined by the browser and can not be changed.

HTML : Can't click the save button [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Keep changing the code but still can't click the save button.
here the code :
<tr>
<td align="center" valign="middle">
<input type="submit" name="btn_basic" id="btn_basic" value="Save" disabled="disabled" />
</td>
</tr>
You have disabled="disabled" in it. This means it's disabled. Disabled means you won't be able to press the button.
Remove disabled="disabled" from the input tag. The disabled attribute disables any field.

Match appearance of buttons [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have two buttons (both working btw..I just need to change the appearance of them to match)
First button opens a print preview page, the second button opens the web browser print dialogue screen. I want to change the second button to match the first.
Is there anyway I can use a HREF on the second button and use an onclick...so it will use the same template for the button instead of fixing this through css?
First Button:
<div style="width:100%; text-align:right">
<a href='#Url.Action("Index", "Route", new { id = Id })'>
<button>Print Preview</button>
</a>
</div>
looks like:
second button:
<div style="width:100%; text-align:right">
<br />
<input type="button" value="Print" onclick="window.print();" />
</div>
looks like:
try this
<div style="width:100%; text-align:right">
<br />
<a onclick="window.print();">
<button>Print</button>
</a>
</div>

Create Link "Subscribe" [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have magento commerce, and I am creating in html an automatic e-mail that is going to be sent when someone signs up (in Dreamweaver).
In the HTML code I have a button that is about subscribing in our newsletter. What is the code that I have to link to this image, so if someone clicks on it he will subscribe to the newsletter.
Thanks in advance,
Frank
The call goes to:
http://yourdomain.de/index.php/newsletter/subscriber/new/
But form data is sent via post as you can see in the Mage_Newsletter_SubscriberController newAction, where you find the following line of code.
$this->getRequest()->isPost() && $this->getRequest()->getPost('email')
So you need to name your form field 'email'
Good luck!
Edit:
Just use something like this:
<form action="http://yourdomain.com/index.php/newsletter/subscriber/new/" method="POST" id="newsletter-validate-detail">
<input type="text" class="input-text required-entry validate-email" name="email" id="newsletter">
<input type="image" src="path to image" name="submit" />
</form>