Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to imbed single quote in href statement

Status
Not open for further replies.
You can escape quotes using backslashes:

Code:
<input type="button" value="Click me" onclick="alert('Here\'s a quote!');" />

--James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top