Quote:
Originally Posted by nitneylion452
Is there a way to make code only run once? I know some java and I know that you can use if-else statements to skip code if something is or is not true. Is there something in HTML that allows me to say something like if the frame is being displayed, do not redisplay it?
|
The first rule of post-1990s web development is don't use frames. The second rule is don't use frames.*
Sorry if it sounds harsh, but using frames to build modern websites is like designing a car to run off of a steam engine. Yes, it'll work, but there's a very good reason why the production of steam-powered cars was abandoned (it's very inefficient). Frames will technically work to make websites, but they have so many problems and require so many awful "hacks" just to make them work somewhat decently, that the practice of using them to make websites has been officially abandoned.
* Small amounts of iframes (they're different from frames) are acceptable when used sparingly. I've used small iframes to do Gmail-style AJAX file upload before.