Use Action to Execute Script in External HTML Object?
July 13, 2012 12:00 AM
Standard Disclaimer: I searched for an hour but didnt' find it.
Here's What I'd Like to Do, but Don't Know How:
I'd like to have a bit of JavaScript or jQuery written out and brought in to my title as an External HTML Object. BUT, I don't want it to run right away when the page loads (that is, "On: Show"). I'd like it to sit there quietly until an action in my title calls it up (for example Action = On: Whatever, Action: Run, Target: That Script in the External HTML Object).
So my lame attempt at this is:
- Write a Script in Dreamweaver and Save it.
- Import it as an External HTML Object on my Page
- Make the External HTML Object "Not Initially Visible"
- Add an Action set to ON: MClick - Action: Show - Target: External HTML Obj.
- And the External HTML Object would then "Show" and thus run its script.
I also tried On: MClick (or whatever) Action: Launch Program / Document and then go find the .js file. Nope, that doesn't do it either.
Has anyone been able to do this?
Discussions have been disabled for this post