I’m not experienced with javascript and don’t even know if this is possible, but I’d like a situation where I have a certain line or two of javascript code that is not seen by the browser upon initial loading of the page that can then be incorporated into that page (ie the page reloaded with that previously hidden code) by clicking a button (or something analogous).
My initial idea was to wrap that code in curly brackets and assign a function to it so it wouldn’t be read unless I called upon the function. But I don’t know if functions can insert previously unread code into the source itself or how to execute them properly if they can (my attempts have failed to yield a page that actually read the code wrapped in that function). I can be more specific about exactly what I’m trying to do if it helps, but that’s basically it.
Thanks for the help in advance ?,
Outer