Okay so I have a handy little script that allows me to load pages into a DIV an alternative of 'iframes' although I want my div to load a first page/index page before any other links are clicked on, in an iframe DIV way of putting things I would like it to be:

<div id="bla" src="index-page.php"></div>

Sort of thing, I was hoping someone could help me with this :)

Thank you in advance!

Pub_img,

<head>
....
<script>
...
onload = function(){
  var myDiv = document.getElementById('bla');
  handy_little_script(myDiv);//or similar, or longhand-out the script here.
};
</script>
....
</head>

Airshow

Would:

<script>
...
onload = function(){
var myDiv = document.getElementById('bla').src='index.php';
handy_little_script(myDiv);//or similar, or longhand-out the script here.
};
</script>

I suppose my question is do you think that would work? :l

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.