PDA

View Full Version : getting elimit by div



TrainReq
Mar 6th, 2007, 01:58 AM
Say if I want to load a div like this for example:

<div id=javascript title=alert('wazzup');>

then somewhere else load a javascript which gets the title from the div with the ID of "javascript" kind of like

<script>
get elimiet from the title
div ID=javascript
</script>

so then if I ever wanted to change the javascript... I simply change the title to something else like title=alert('hello');