why does this happen? - Post ID 262420

User 2837306 Photo

Registered User
4 posts

I am new to coffee cup and new to programming!
This code works fine with control and F9

<input type="button" value="Close" onClick="window.close(self)" />
However, after uploading it doesn't work on the site when button clicked?
See existing site I am making www.chapspoole.com

any ideas for correction Thank you
User 2147646 Photo

Registered User
233 posts

They all work for me! But you do have a stray <p> in your code :) also inputs no longer need a / to close :)

User 2287960 Photo

546 posts

Not wishing to be rude but your code is somewhat outdated.

Styles in head, <br>, <center> not really used in HTML5 CSS3.

Easier route would be to get a template and amend it to your needs. Remember all sites need to be responsive.

Latest version of HTML editor has themes with it.


Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.