OZONE Asylum
Forums
Stupid Basic HTML
Ok...onClick and <button> problems
This page's ID:
23122
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
[quote] And in Dreamweaver it comes up automatically with the uppercase. So unless they have it wrong in the program (possible, but not probable...) Im not sure what Im missing. [/quote] What you are missing is that Dreamweaver (and the like) are horribly suited as tools on which to learn the technology you are trying to learn. That is, learning becomes MORE difficult with this sort of software, not less. I strongly suggest you get yourself a copy of vi, notepad, or even our very own Mr. Max's [url=http://www.htmlbeauty.com/]HTML Beauty[/url] and learn to code on your own. It'll be slow at first, but with some helpful people around here, you'll be actually learning in no time. So, back to the issue at hand. Clean up your code, at least a little bit. In your button element, the onclick attribute, what you are doing is calling a function. Well, actually, right now you are calling two functions. One of them (closeWindow()) does not exist. One of them (close_window()) does exist. Remove the one that does not exist. [code] <button type="button" onclick="close_window()">Close Window</button> [/code] Now the important thing here is not that you can manipulate Dreamweaver or copy some code I (or anyone else) posts up here. The important thing is that you understand why we (me, dreamweaver, DL, etc) put that code there in the first place.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »